Changeset 99071 in webkit


Ignore:
Timestamp:
Nov 2, 2011 9:44:38 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Deepak Sherveghar <bpwv64@motorola.com> on 2011-11-02
Reviewed by Simon Hausmann.

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

  • WebCoreSupport/FrameLoaderClientQt.cpp:

(WebCore::FrameLoaderClientQt::committedLoad):
(WebCore::FrameLoaderClientQt::shouldFallBack):

Location:
trunk/Source/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/ChangeLog

    r98975 r99071  
     12011-11-02  Deepak Sherveghar  <bpwv64@motorola.com>
     2
     3        [Qt] Failing test media/video-document-types.html
     4        https://bugs.webkit.org/show_bug.cgi?id=62108
     5
     6        Reviewed by Simon Hausmann.
     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        * WebCoreSupport/FrameLoaderClientQt.cpp:
     12        (WebCore::FrameLoaderClientQt::committedLoad):
     13        (WebCore::FrameLoaderClientQt::shouldFallBack):
     14
    1152011-11-01  Simon Hausmann  <simon.hausmann@nokia.com>
    216
  • trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

    r98231 r99071  
    900900    if (!m_pluginView)
    901901        loader->commitData(data, length);
    902    
     902
     903    // If we are sending data to MediaDocument, we should stop here and cancel the request.
     904    if (m_frame->document()->isMediaDocument())
     905        loader->cancelMainResourceLoad(pluginWillHandleLoadError(loader->response()));
     906
    903907    // We re-check here as the plugin can have been created.
    904908    if (m_pluginView && m_pluginView->isPluginView()) {
     
    975979bool FrameLoaderClientQt::shouldFallBack(const WebCore::ResourceError& error)
    976980{
    977     return !(error.isCancellation() || (error.errorCode() == WebKitErrorFrameLoadInterruptedByPolicyChange));
     981    return !(error.isCancellation() || (error.errorCode() == WebKitErrorFrameLoadInterruptedByPolicyChange) || (error.errorCode() == WebKitErrorPluginWillHandleLoad));
    978982}
    979983
Note: See TracChangeset for help on using the changeset viewer.