Changeset 71257 in webkit


Ignore:
Timestamp:
Nov 3, 2010 12:42:22 PM (13 years ago)
Author:
pfeldman@chromium.org
Message:

2010-11-03 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Timothy Hatcher.

Web Inspector: main resource is being re-assigned upon iframe's commit load.
https://bugs.webkit.org/show_bug.cgi?id=48940

  • inspector/front-end/ResourceManager.js: (WebInspector.ResourceManager.prototype.identifierForInitialRequest): (WebInspector.ResourceManager.prototype.didCommitLoadForFrame):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r71256 r71257  
     12010-11-03  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Web Inspector: main resource is being re-assigned upon iframe's commit load.
     6        https://bugs.webkit.org/show_bug.cgi?id=48940
     7
     8        * inspector/front-end/ResourceManager.js:
     9        (WebInspector.ResourceManager.prototype.identifierForInitialRequest):
     10        (WebInspector.ResourceManager.prototype.didCommitLoadForFrame):
     11
    1122010-11-03  Nate Chapin  <japhet@chromium.org>
    213
  • trunk/WebCore/inspector/front-end/ResourceManager.js

    r71254 r71257  
    6464    {
    6565        var resource = this._createResource(identifier, url, loader);
    66         if (loader.url === url) {
    67             resource.isMainResource = true;
    68             WebInspector.mainResource = resource;
    69         }
    7066
    7167        // It is important to bind resource url early (before scripts compile).
     
    260256    {
    261257        this._resourceTreeModel.didCommitLoadForFrame(frame, loader);
     258        if (!frame.parentId) {
     259            var mainResource = this.resourceForURL(frame.url);
     260            if (mainResource) {
     261                WebInspector.mainResource = mainResource;
     262                mainResource.isMainResource = true;
     263            }
     264        }
    262265    },
    263266
Note: See TracChangeset for help on using the changeset viewer.