[Webkit-unassigned] [Bug 108746] New: Web Inspector: Some initiator displayName of Network Panel are not correct when reload.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 2 00:19:19 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=108746

           Summary: Web Inspector: Some initiator displayName of Network
                    Panel are not correct when reload.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pan.deng at intel.com
                CC: keishi at webkit.org, pmuellr at yahoo.com,
                    pfeldman at chromium.org, yurys at chromium.org,
                    apavlov at chromium.org, loislo at chromium.org,
                    vsevik at chromium.org,
                    web-inspector-bugs at googlegroups.com


Created an attachment (id=186217)
 --> (https://bugs.webkit.org/attachment.cgi?id=186217&action=review)
initiator displayName of Network Panel

How to reproduce?
step 1: load www.yahoo.com
step 2: open inspector Network panel for yahoo
step 3: refresh the inspected yahoo page.
step 4: you can see some initiator info represent like "/:525", while some others "www.yahoo.com:525".

Reason is WebInspector.displayNameForURL() is not work as expected with the parameter http://www.yahoo.com/ in the reload scenario, it was trimed to “/”in the final return.

It root caused by side effect of change r127705, in which RequestUpdated event-handler was removed from ResourceTreeModel. Before the change, during the page reload, when front-end received the message of responseReceived for document http://www.yahoo.com/, the _resourcesMap in resourceTreeFrame will be updated, while after the change,it won’t be updated until document finishLoading message received. So to represent initiator of early finshloading resources, we request resource of http://www.yahoo.com/ in displayNameForURL() by function resourceForURL(), and finally found nothing in _resourcesMap of ResourceTreeFrame. 

To fix this, I suggest modify function displayNameForURL(), return the host name for URL which doesn’t contain path and query string, eg http://www.yahoo.com/.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list