summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMonroe Linden <monroe@lindenlab.com>2010-12-03 15:47:32 -0800
committerMonroe Linden <monroe@lindenlab.com>2010-12-03 15:47:32 -0800
commitb8ec0d25be75dbdeca3f5e884186eebfa2b2ae08 (patch)
tree96936261415cad1ccbee96debde0f5c20c90e91c /indra/newview
parent91fba2bd67d144fe4eedb7143a46e9edee12f5c6 (diff)
SOCIAL-248 FIX Remove HEAD requests from WebKit
This change makes LLFloaterWebContent always specify a MIME type of "text/html" when navigating to an URL. This tells the plugin system to skip the MIME type probe (which is what does the HEAD request) and just use the WebKit plugin. This means non-web content (such as QuickTime movies) may not work properly in the web content floater. Hopefully this won't be a problem...
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterwebcontent.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llfloaterwebcontent.cpp b/indra/newview/llfloaterwebcontent.cpp
index b2391cc54c..ed66be165e 100644
--- a/indra/newview/llfloaterwebcontent.cpp
+++ b/indra/newview/llfloaterwebcontent.cpp
@@ -181,9 +181,10 @@ void LLFloaterWebContent::geometryChanged(S32 x, S32 y, S32 width, S32 height)
void LLFloaterWebContent::open_media(const std::string& web_url, const std::string& target)
{
- mWebBrowser->setHomePageUrl(web_url);
+ // Specifying a mime type of text/html here causes the plugin system to skip the MIME type probe and just open a browser plugin.
+ mWebBrowser->setHomePageUrl(web_url, "text/html");
mWebBrowser->setTarget(target);
- mWebBrowser->navigateTo(web_url);
+ mWebBrowser->navigateTo(web_url, "text/html");
set_current_url(web_url);
}
@@ -324,6 +325,6 @@ void LLFloaterWebContent::onEnterAddress()
// (perhaps this test should be for minimum length of a URL)
if ( mAddressCombo->getValue().asString().length() > 0 )
{
- mWebBrowser->navigateTo( mAddressCombo->getValue().asString() );
+ mWebBrowser->navigateTo( mAddressCombo->getValue().asString(), "text/html");
};
}