[Webkit-unassigned] [Bug 109135] Web Inspector: Sort by Initiator functionality of Network Panel doesn't work well

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 11 01:37:45 PST 2013


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





--- Comment #2 from Eugene Klyuchnikov <eustas at chromium.org>  2013-02-11 01:39:57 PST ---
(From update of attachment 186991)
View in context: https://bugs.webkit.org/attachment.cgi?id=186991&action=review

> Source/WebCore/inspector/front-end/NetworkPanel.js:2220
> +    get displayedInitiatorUrl()

We're not using getters/setters in new code.

> Source/WebCore/inspector/front-end/NetworkPanel.js:2226
> +        return displayedUrl.replace(/:\d*$/, "");

Accessing text content and using regexp should be avoided at all and specifically in loop (sorting).
This data should be stored in node field when refresh comes.

> Source/WebCore/inspector/front-end/NetworkPanel.js:2235
> +        return displayedUrl.replace(/[^:]*:/g, "");

Ditto.

> Source/WebCore/inspector/front-end/NetworkPanel.js:2407
> +    if (!a._request.initiator || a._request.initiator.type === "other")

Enum containing ["parser", "script", "other"] should be declared and used to avoid further typos.
IMHO it could be placed in NetworkRequest.js

-- 
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