diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-11 13:45:28 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-11 13:45:28 +0200 |
commit | d6a599dbc9d824a462b2b206316e102bf8136446 (patch) | |
tree | ecb257a5e55b2239d74b90fdad62fccd661cf286 /Source/WebCore/loader/MainResourceLoader.cpp | |
parent | 3ccc3a85f09a83557b391aae380d3bf5f81a2911 (diff) | |
download | qtwebkit-d6a599dbc9d824a462b2b206316e102bf8136446.tar.gz |
Imported WebKit commit 8ff1f22783a32de82fee915abd55bd1b298f2644 (http://svn.webkit.org/repository/webkit/trunk@122325)
New snapshot that should work with the latest Qt build system changes
Diffstat (limited to 'Source/WebCore/loader/MainResourceLoader.cpp')
-rw-r--r-- | Source/WebCore/loader/MainResourceLoader.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Source/WebCore/loader/MainResourceLoader.cpp b/Source/WebCore/loader/MainResourceLoader.cpp index 57d01134b..8b2204d24 100644 --- a/Source/WebCore/loader/MainResourceLoader.cpp +++ b/Source/WebCore/loader/MainResourceLoader.cpp @@ -352,29 +352,6 @@ void MainResourceLoader::continueAfterContentPolicy(PolicyAction policy) deref(); // balances ref in didReceiveResponse } -#if PLATFORM(QT) -void MainResourceLoader::substituteMIMETypeFromPluginDatabase(const ResourceResponse& r) -{ - if (!m_frame->loader()->subframeLoader()->allowPlugins(NotAboutToInstantiatePlugin)) - return; - - String filename = r.url().lastPathComponent(); - if (filename.endsWith('/')) - return; - - size_t extensionPos = filename.reverseFind('.'); - if (extensionPos == notFound) - return; - - String extension = filename.substring(extensionPos + 1); - String mimeType = PluginDatabase::installedPlugins()->MIMETypeForExtension(extension); - if (!mimeType.isEmpty()) { - ResourceResponse* response = const_cast<ResourceResponse*>(&r); - response->setMimeType(mimeType); - } -} -#endif - void MainResourceLoader::didReceiveResponse(const ResourceResponse& r) { if (documentLoader()->applicationCacheHost()->maybeLoadFallbackForMainResponse(request(), r)) @@ -399,11 +376,6 @@ void MainResourceLoader::didReceiveResponse(const ResourceResponse& r) ASSERT(shouldLoadAsEmptyDocument(r.url()) || !defersLoading()); #endif -#if PLATFORM(QT) - if (r.mimeType() == "application/octet-stream") - substituteMIMETypeFromPluginDatabase(r); -#endif - if (m_loadingMultipartContent) { frameLoader()->activeDocumentLoader()->setupForReplaceByMIMEType(r.mimeType()); clearResourceData(); |