Bug 59108 - Web Inspector: group content scripts in the scripts panel drop down.
Summary: Web Inspector: group content scripts in the scripts panel drop down.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-21 09:35 PDT by Pavel Feldman
Modified: 2011-04-22 06:18 PDT (History)
10 users (show)

See Also:


Attachments
Patch (3.66 KB, patch)
2011-04-21 09:40 PDT, Pavel Feldman
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Feldman 2011-04-21 09:35:03 PDT
Patch to follow.
Comment 1 Pavel Feldman 2011-04-21 09:40:02 PDT
Created attachment 90547 [details]
Patch
Comment 2 Yury Semikhatsky 2011-04-22 05:37:39 PDT
Comment on attachment 90547 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=90547&action=review

> Source/WebCore/inspector/front-end/ScriptsPanel.js:292
> +            if (a.isContentScript && !b.isContentScript)

you could use difference between two boolean values instead of these two statements:

var d = !!a.isContentScript - !!b.isContentScript;
if (!d) return d;
Comment 3 Pavel Feldman 2011-04-22 06:18:29 PDT
Committed r84623: <http://trac.webkit.org/changeset/84623>