Bug 174798 - Web Inspector: Add three.js in preparation for layer visualization.
Summary: Web Inspector: Add three.js in preparation for layer visualization.
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: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 174176
  Show dependency treegraph
 
Reported: 2017-07-24 14:27 PDT by Ross Kirsling
Modified: 2017-08-10 20:08 PDT (History)
7 users (show)

See Also:


Attachments
Patch (1.06 MB, patch)
2017-07-24 17:46 PDT, Ross Kirsling
no flags Details | Formatted Diff | Diff
Patch (1.06 MB, patch)
2017-08-10 14:53 PDT, Ross Kirsling
bburg: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff
Patch (1.30 MB, patch)
2017-08-10 19:21 PDT, Ross Kirsling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Kirsling 2017-07-24 14:27:18 PDT
Add three.js and its OrbitControls as a prerequisite for the 3D layer visualization.
Comment 1 Ross Kirsling 2017-07-24 17:46:00 PDT
Created attachment 316332 [details]
Patch
Comment 2 Alexey Proskuryakov 2017-07-24 17:49:26 PDT
three.js appears to be under MIT license, which is not one of those allowed in WebKit. I don't know exactly how this works, but we may need some extra review of license terms.
Comment 3 Alexey Proskuryakov 2017-07-24 17:52:26 PDT
Comment on attachment 316332 [details]
Patch

R- since this patch violates license requirements set on patch upload page, and there is no indication that there was an exception agreed upon.
Comment 4 Ross Kirsling 2017-07-24 17:54:55 PDT
Sure. Brian mentioned on IRC that "if you want to check in three.js and orbit controls, I can start a request with our legal team", so I'd opened this ticket accordingly.
Comment 5 Ross Kirsling 2017-07-25 15:24:26 PDT
Note that among the existing libraries in Web Inspector, CodeMirror and ESLint are both MIT-licensed, while Esprima is BSD-licensed (which should be equivalent: https://choosealicense.com/appendix/).

I'm surprised that a conversation should even be necessary regarding permissive OSS licenses, but presumably this should just be a matter of doing. :)
Comment 6 Alexey Proskuryakov 2017-07-25 22:19:31 PDT
> I'm surprised that a conversation should even be necessary regarding permissive OSS licenses 

Seems worth raising this on webkit-dev mailing list.
Comment 7 BJ Burg 2017-08-10 12:10:24 PDT
Comment on attachment 316332 [details]
Patch

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

Please upload a new patch with directory rename.

When you actually hook this into the build system, you'll need to make sure it gets minified properly. That should be in a follow up patch separate from the source dump.

> Source/WebInspectorUI/ChangeLog:8
> +        * UserInterface/External/Three/LICENSE: Added.

Can you put it into directory named three.js or threejs instead of Three?

> Source/WebInspectorUI/UserInterface/Main.html:246
> +    <script src="External/Three/OrbitControls.js"></script>

No need to include it until it's used.
Comment 8 Ross Kirsling 2017-08-10 14:53:46 PDT
Created attachment 317855 [details]
Patch
Comment 9 BJ Burg 2017-08-10 16:18:49 PDT
Comment on attachment 317855 [details]
Patch

r=me
Comment 10 WebKit Commit Bot 2017-08-10 17:38:06 PDT
Comment on attachment 317855 [details]
Patch

Rejecting attachment 317855 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 317855, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
fs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ...
Currently at 220563 = 79a999cbe204abbc99b3ba8e1b8a1d659720d01e
r220565 = dedd274b9feaeb9e589fbcfde9b3958152a25309
r220566 = 104789904f418c99cf355973ee0f95a4f017490e
r220567 = 0a63ca5d8ceb2abd6d17e2abfab369ecf4c3b0b5
Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc
First, rewinding head to replay your work on top of it...
Fast-forwarded master to refs/remotes/origin/master.

Full output: http://webkit-queues.webkit.org/results/4292876
Comment 11 Ross Kirsling 2017-08-10 18:28:38 PDT
Looks like we'll need to sanitize those damn tabs after all. *shakes fist*
Comment 12 Ross Kirsling 2017-08-10 19:21:28 PDT
Created attachment 317901 [details]
Patch
Comment 13 WebKit Commit Bot 2017-08-10 20:07:09 PDT
Comment on attachment 317901 [details]
Patch

Clearing flags on attachment: 317901

Committed r220575: <http://trac.webkit.org/changeset/220575>
Comment 14 WebKit Commit Bot 2017-08-10 20:07:11 PDT
All reviewed patches have been landed.  Closing bug.
Comment 15 Radar WebKit Bug Importer 2017-08-10 20:08:57 PDT
<rdar://problem/33842044>