[Webkit-unassigned] [Bug 157162] New: Web Inspector: FormatterWorker fails to find "External/Esprima.js" in Production builds

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 28 20:19:29 PDT 2016


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

            Bug ID: 157162
           Summary: Web Inspector: FormatterWorker fails to find
                    "External/Esprima.js" in Production builds
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: bburg at apple.com, graouts at webkit.org,
                    joepeck at webkit.org, mattbaker at apple.com,
                    nvasilyev at apple.com, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

* SUMMARY
FormatterWorker fails to find "External/Esprima.js" in Production builds.

This affects Safari Technology Preview Release 3 and Nightlies.

* STEPS TO REPRODUCE
1. Open Inspector on this page
2. Try to open any Script with minified contents
  => Infinite loading indicator

* ERROR
[Error] Failed to load resource: The requested URL was not found on this server. (esprima.js, line 0)
URL in this case being: file:///Applications/Safari%20Technology%20Preview.app/Contents/Frameworks/WebInspectorUI.framework/Resources/External/Esprima/esprima.js

Bad path:
WebInspectorUI.framework/Resources/External/Esprima.js

The actual path ends up be:
WebInspectorUI.framework/Resources/Esprima.js

* NOTES
Source/WebInspectorUI/UserInterface/Workers/Formatter/FormatterWorker.js does:
> importScripts(...[
>     "../../External/Esprima/esprima.js",
>     "FormatterUtilities.js",
>     "FormatterContentBuilder.js",
>     "ESTreeWalker.js",
>     "EsprimaFormatter.js",
> ]);

So apparently our optimization pass doesn't keep the External directory.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160429/8bdac91b/attachment.html>


More information about the webkit-unassigned mailing list