Changeset 150766 in webkit


Ignore:
Timestamp:
May 27, 2013 11:04:02 AM (11 years ago)
Author:
efidler@rim.com
Message:

[BlackBerry] Fix subframe target added to new requests
https://bugs.webkit.org/show_bug.cgi?id=116602

Reviewed by Rob Buis.

In some cases we might be adding TargetIsMainFrame to a subframe
request causing an isMainFrame assert.

  • WebCoreSupport/FrameLoaderClientBlackBerry.cpp:

(WebCore::FrameLoaderClientBlackBerry::dispatchWillSendRequest):
Check we are actually loading the main frame before setting
ResourceRequest::TargetIsMainFrame target.

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

Legend:

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

    r150760 r150766  
     12013-05-27  Eli Fidler  <efidler@rim.com>
     2
     3        [BlackBerry] Fix subframe target added to new requests
     4        https://bugs.webkit.org/show_bug.cgi?id=116602
     5
     6        Reviewed by Rob Buis.
     7
     8        In some cases we might be adding TargetIsMainFrame to a subframe
     9        request causing an isMainFrame assert.
     10
     11        * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
     12        (WebCore::FrameLoaderClientBlackBerry::dispatchWillSendRequest):
     13        Check we are actually loading the main frame before setting
     14        ResourceRequest::TargetIsMainFrame target.
     15
    1162013-05-27  Carlos Garcia Campos  <cgarcia@igalia.com>
    217
  • trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp

    r150757 r150766  
    966966
    967967    // TargetType for subresource loads should have been set in CachedResource::load().
    968     if (isMainResourceLoad && request.targetType() == ResourceRequest::TargetIsUnspecified)
    969         request.setTargetType(isMainFrame() ? ResourceRequest::TargetIsMainFrame : ResourceRequest::TargetIsSubframe);
     968    if (isMainResourceLoad)
     969        request.setTargetType(docLoader->frameLoader()->isLoadingMainFrame() ? ResourceRequest::TargetIsMainFrame : ResourceRequest::TargetIsSubframe);
    970970
    971971    // Any processing which is done for all loads (both main and subresource) should go here.
Note: See TracChangeset for help on using the changeset viewer.