Changeset 51104 in webkit


Ignore:
Timestamp:
Nov 18, 2009 4:48:47 AM (14 years ago)
Author:
kov@webkit.org
Message:

Reviewed by Xan Lopez.

[GTK] Failing test media/video-document-types.html
https://bugs.webkit.org/show_bug.cgi?id=31352

Match what Mac has been doing since r36001: cancel the main load,
and handle failures caused by 'will be handled by plugin' errors.

Covered by test media/video-document-types.html

  • WebCoreSupport/FrameLoaderClientGtk.cpp:

(WebKit::FrameLoaderClient::committedLoad):
(WebKit::FrameLoaderClient::shouldFallBack):

Location:
trunk/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/gtk/ChangeLog

    r51072 r51104  
     12009-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
    1172009-11-17  Pavel Feldman  <pfeldman@chromium.org>
    218
  • trunk/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp

    r50973 r51104  
    150150        if (data)
    151151            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()));
    152156    }
    153157
     
    987991bool FrameLoaderClient::shouldFallBack(const ResourceError& error)
    988992{
    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);
    992994}
    993995
Note: See TracChangeset for help on using the changeset viewer.