Changeset 51104 in webkit
- Timestamp:
- Nov 18, 2009 4:48:47 AM (14 years ago)
- Location:
- trunk/WebKit/gtk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/gtk/ChangeLog
r51072 r51104 1 2009-11-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Failing test media/video-document-types.html 6 https://bugs.webkit.org/show_bug.cgi?id=31352 7 8 Match what Mac has been doing since r36001: cancel the main load, 9 and handle failures caused by 'will be handled by plugin' errors. 10 11 Covered by test media/video-document-types.html 12 13 * WebCoreSupport/FrameLoaderClientGtk.cpp: 14 (WebKit::FrameLoaderClient::committedLoad): 15 (WebKit::FrameLoaderClient::shouldFallBack): 16 1 17 2009-11-17 Pavel Feldman <pfeldman@chromium.org> 2 18 -
trunk/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r50973 r51104 150 150 if (data) 151 151 frameLoader->addData(data, length); 152 153 Frame* coreFrame = loader->frame(); 154 if (coreFrame->document() && coreFrame->document()->isMediaDocument()) 155 loader->cancelMainResourceLoad(frameLoader->client()->pluginWillHandleLoadError(loader->response())); 152 156 } 153 157 … … 987 991 bool FrameLoaderClient::shouldFallBack(const ResourceError& error) 988 992 { 989 // FIXME: Mac checks for WebKitErrorPlugInWillHandleLoad here to avoid 990 // loading plugin content twice. Do we need it? 991 return !(error.isCancellation() || error.errorCode() == WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE); 993 return !(error.isCancellation() || error.errorCode() == WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE || error.errorCode() == WEBKIT_PLUGIN_ERROR_WILL_HANDLE_LOAD); 992 994 } 993 995
Note: See TracChangeset
for help on using the changeset viewer.