| Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| index 5f0fed374f76a91178a024558f36fe9efb30a97d..c95b7dfbd5997b19d929962592dad16e0193072b 100644
|
| --- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| @@ -319,11 +319,11 @@ void DocumentLoader::redirectReceived(Resource* resource, ResourceRequest& reque
|
| frameLoader()->receivedMainResourceRedirect(requestURL);
|
| }
|
|
|
| -static bool canShowMIMEType(const String& mimeType, Page* page)
|
| +static bool canShowMIMEType(const String& mimeType, LocalFrame* frame)
|
| {
|
| if (Platform::current()->mimeRegistry()->supportsMIMEType(mimeType) == WebMimeRegistry::IsSupported)
|
| return true;
|
| - PluginData* pluginData = page->pluginData();
|
| + PluginData* pluginData = frame->pluginData();
|
| return !mimeType.isEmpty() && pluginData && pluginData->supportsMimeType(mimeType);
|
| }
|
|
|
| @@ -345,7 +345,7 @@ bool DocumentLoader::shouldContinueForResponse() const
|
| return false;
|
| }
|
|
|
| - if (!canShowMIMEType(m_response.mimeType(), m_frame->page()))
|
| + if (!canShowMIMEType(m_response.mimeType(), m_frame))
|
| return false;
|
| return true;
|
| }
|
|
|