From 36a95ec36e1a77397f25efe81468af38f47bd885 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sun, 8 Jul 2012 00:31:18 +0200 Subject: [PATCH] REVERT! Fix for media update commit. --- indra/newview/app_settings/settings.xml | 22 ++++++++++++++++++++++ indra/newview/llmediactrl.cpp | 4 ---- indra/newview/llviewermedia.cpp | 11 ----------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 2eca82c95..68f0cf073 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -2200,6 +2200,28 @@ Value 0 + BrowserUseDefaultCAFile + + Comment + Tell the built-in web browser to use the CA.pem file shipped with the client. + Persist + 1 + Type + Boolean + Value + 1 + + BrowserCAFilePath + + Comment + Tell the built-in web browser the path to an alternative CA.pem file (only used if BrowserUseDefaultCAFile is false) + Persist + 1 + Type + String + Value + + PluginAttachDebuggerToPlugins Comment diff --git a/indra/newview/llmediactrl.cpp b/indra/newview/llmediactrl.cpp index 315afe84a..818fa504d 100644 --- a/indra/newview/llmediactrl.cpp +++ b/indra/newview/llmediactrl.cpp @@ -345,10 +345,6 @@ BOOL LLMediaCtrl::postBuild () return true; } -void LLMediaCtrl::onOpenWebInspector() - if (mMediaSource && mMediaSource->hasMedia()) - mMediaSource->getMediaPlugin()->showWebInspector( true ); -} //////////////////////////////////////////////////////////////////////////////// // BOOL LLMediaCtrl::handleKeyHere( KEY key, MASK mask ) diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index 7bd2ff41e..a7678f14d 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -488,17 +488,6 @@ bool LLViewerMediaImpl::initializePlugin(const std::string& media_type) // set the path to the CA.pem file media_source->addCertificateFilePath( ca_path ); - // TODO: Only send cookies to plugins that need them - // Ideally, the plugin should tell us whether it handles cookies or not -- either via the init response or through a separate message. - // Due to the ordering of messages, it's possible we wouldn't get that information back in time to send cookies before sending a navigate message, - // which could cause odd race conditions. - std::string all_cookies = LLViewerMedia::getCookieStore()->getAllCookies(); - lldebugs << "setting cookies: " << all_cookies << llendl; - if(!all_cookies.empty()) - { - media_source->set_cookies(all_cookies); - } - mPluginBase = media_source; return true;