Bug 151711 - Web Inspector: Broken Inspector when resources are minified
Summary: Web Inspector: Broken Inspector when resources are minified
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-12-01 11:17 PST by Joseph Pecoraro
Modified: 2015-12-01 13:12 PST (History)
7 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (7.34 KB, patch)
2015-12-01 11:21 PST, Joseph Pecoraro
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-12-01 11:17:10 PST
* SUMMARY
Broken Inspector when resources are minified.

* ERRORS:
Main.js:8903:11: CONSOLE ERROR ReferenceError: Can't find variable: CodeMirror
Main.html:38:28: CONSOLE ERROR TypeError: WebInspector.loaded is not a function. (In 'WebInspector.loaded()', 'WebInspector.loaded' is undefined)

* NOTES
The minified html shows Main.js first in the list above its dependencies:

>    <script src="Main.js"></script>
>    <script src="CodeMirror.js"></script>
>    <script src="Esprima.js"></script>
>    <script src="ESLint.js"></script>
Comment 1 Joseph Pecoraro 2015-12-01 11:19:36 PST
<rdar://problem/23692010>
Comment 2 Joseph Pecoraro 2015-12-01 11:21:18 PST
Created attachment 266369 [details]
[PATCH] Proposed Fix
Comment 3 Joseph Pecoraro 2015-12-01 13:12:17 PST
<https://trac.webkit.org/changeset/192902>