Bug 135728 - Web Inspector: Combine and minify Esprima
Summary: Web Inspector: Combine and minify Esprima
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-08-07 15:09 PDT by Timothy Hatcher
Modified: 2014-08-07 23:49 PDT (History)
6 users (show)

See Also:


Attachments
Patch (9.07 KB, patch)
2014-08-07 15:10 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff
Patch (8.94 KB, patch)
2014-08-07 16:30 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff
Patch (11.06 KB, patch)
2014-08-07 23:09 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2014-08-07 15:09:46 PDT
We should minify Esprima.

<rdar://problem/17879560>
Comment 1 Timothy Hatcher 2014-08-07 15:10:50 PDT
Created attachment 236231 [details]
Patch
Comment 2 Joseph Pecoraro 2014-08-07 16:11:30 PDT
Comment on attachment 236231 [details]
Patch

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

r=me

> Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl:99
> +open(ESLFILE, '<', $esprimaLicenseFile) or die "Unable to open $$esprimaLicenseFile: $!";

Nit: I think the $$ here is unexpected.

> Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl:105
> +$ESPRIMA_LICENSE .= " */\n";

We could make this block a function so we can share with the CodeMirror block. They are identical.
Comment 3 Timothy Hatcher 2014-08-07 16:30:05 PDT
Created attachment 236239 [details]
Patch
Comment 4 WebKit Commit Bot 2014-08-07 17:04:42 PDT
Comment on attachment 236239 [details]
Patch

Rejecting attachment 236239 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
Volumes/Data/EWS/WebKit/Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE: No such file or directory at /Volumes/Data/EWS/WebKit/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl line 45.
Command /bin/sh failed with exit code 2

** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution Copy\ User\ Interface\ Resources /Volumes/Data/EWS/WebKit/WebKitBuild/WebInspectorUI.build/Release/WebInspectorUI.build/Script-1C60FF1214E6D9AF006CD77D.sh
(1 failure)

Full output: http://webkit-queues.appspot.com/results/6215676310061056
Comment 5 Joseph Pecoraro 2014-08-07 18:40:27 PDT
(In reply to comment #4)
> (From update of attachment 236239 [details])
> Rejecting attachment 236239 [details] from commit-queue.
> 
> Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit
> 
> Last 500 characters of output:
> Volumes/Data/EWS/WebKit/Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE: No such file or directory at /Volumes/Data/EWS/WebKit/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl line 45.

This new patch is missing the LICENSE file.
Comment 6 Timothy Hatcher 2014-08-07 23:09:12 PDT
Created attachment 236267 [details]
Patch
Comment 7 Timothy Hatcher 2014-08-07 23:09:22 PDT
Doh!
Comment 8 WebKit Commit Bot 2014-08-07 23:49:10 PDT
Comment on attachment 236267 [details]
Patch

Clearing flags on attachment: 236267

Committed r172331: <http://trac.webkit.org/changeset/172331>
Comment 9 WebKit Commit Bot 2014-08-07 23:49:13 PDT
All reviewed patches have been landed.  Closing bug.