Bug 156278 - Web Inspector: Do not create CodeMirror color/gradient markers in JavaScript resources
Summary: Web Inspector: Do not create CodeMirror color/gradient markers in JavaScript ...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
Keywords: InRadar
: 129629 (view as bug list)
Depends on:
Reported: 2016-04-05 21:47 PDT by Joseph Pecoraro
Modified: 2016-06-04 23:51 PDT (History)
8 users (show)

See Also:

[PATCH] Proposed Fix (2.06 KB, patch)
2016-04-05 21:48 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-04-05 21:47:30 PDT
Do not create CodeMirror color/gradient markers in JavaScript resources.

var red = "foo";

1. Inspect test page
2. Show JavaScript resource with a variable name that is a CSS color name
3. Hover variable name
  => Get color marker

Performance is poor. Creating markers for JavaScript resources doesn't make sense either.

Logging time it took to generate markers on the JavaScript resources on apple.com:

    MARKERS 43ms
    MARKERS 807ms
    MARKERS 58ms
    MARKERS 285ms
    MARKERS 824ms
    MARKERS 134ms

This can be completely eliminated.
Comment 1 Radar WebKit Bug Importer 2016-04-05 21:47:41 PDT
Comment 2 Joseph Pecoraro 2016-04-05 21:48:40 PDT
Created attachment 275751 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2016-04-05 22:45:16 PDT
Comment on attachment 275751 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 275751

Committed r199095: <http://trac.webkit.org/changeset/199095>
Comment 4 WebKit Commit Bot 2016-04-05 22:45:21 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Joseph Pecoraro 2016-06-04 23:51:40 PDT
*** Bug 129629 has been marked as a duplicate of this bug. ***