Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Issue 1684303002: Add a basic version of Worklet#import. (Closed)

Created:
4 years, 10 months ago by ikilpatrick
Modified:
4 years, 10 months ago
CC:
blink-reviews, chromium-reviews, kinuko+watch, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a basic version of Worklet#import. Worklets are now spec'd to use the 'module' loading infrastructure instead of the classic scripts. 'module' loading is still getting nailed down, so at the moment just load a 'classic' script. https://html.spec.whatwg.org/multipage/scripting.html#concept-script-type There is a large TODO to change this over when 'module' loading becomes mature. Workers will also (probably) need to support 'module' script loading in the future, (see: https://github.com/whatwg/html/pull/608 ) so any changes to script controller / script loader will benefit both. Worklet now inherits from ActiveDOMObject due to script loading. BUG=567358 Committed: https://crrev.com/3931071f1feca0ed359ab392b1a4a48ac135e830 Cr-Commit-Position: refs/heads/master@{#376271}

Patch Set 1 #

Total comments: 12

Patch Set 2 : adressed comments. #

Total comments: 2

Patch Set 3 : remove hasPendingActivity #

Patch Set 4 : cleanup. #

Total comments: 3

Patch Set 5 : remove guard. #

Patch Set 6 : rebase #

Patch Set 7 : Fix non-oilpan build. #

Messages

Total messages: 25 (10 generated)
ikilpatrick
4 years, 10 months ago (2016-02-10 22:02:26 UTC) #3
kinuko
Sorry for slow review, was holiday in Japan yesterday... I think this looks good overall, ...
4 years, 10 months ago (2016-02-12 07:25:45 UTC) #4
ikilpatrick
https://codereview.chromium.org/1684303002/diff/1/third_party/WebKit/LayoutTests/http/tests/worklet/import.html File third_party/WebKit/LayoutTests/http/tests/worklet/import.html (right): https://codereview.chromium.org/1684303002/diff/1/third_party/WebKit/LayoutTests/http/tests/worklet/import.html#newcode10 third_party/WebKit/LayoutTests/http/tests/worklet/import.html:10: async_test(function(t) { On 2016/02/12 07:25:44, kinuko wrote: > nit: ...
4 years, 10 months ago (2016-02-12 22:59:57 UTC) #5
kinuko
https://codereview.chromium.org/1684303002/diff/1/third_party/WebKit/Source/modules/worklet/Worklet.h File third_party/WebKit/Source/modules/worklet/Worklet.h (right): https://codereview.chromium.org/1684303002/diff/1/third_party/WebKit/Source/modules/worklet/Worklet.h#newcode35 third_party/WebKit/Source/modules/worklet/Worklet.h:35: bool hasPendingActivity() const final; On 2016/02/12 22:59:57, ikilpatrick wrote: ...
4 years, 10 months ago (2016-02-15 04:58:27 UTC) #6
haraken
On 2016/02/15 04:58:27, kinuko wrote: > https://codereview.chromium.org/1684303002/diff/1/third_party/WebKit/Source/modules/worklet/Worklet.h > File third_party/WebKit/Source/modules/worklet/Worklet.h (right): > > https://codereview.chromium.org/1684303002/diff/1/third_party/WebKit/Source/modules/worklet/Worklet.h#newcode35 > ...
4 years, 10 months ago (2016-02-15 05:16:44 UTC) #7
ikilpatrick
Thanks :) Lifetimes are making more sense now. Just a few more questions. https://codereview.chromium.org/1684303002/diff/1/third_party/WebKit/Source/modules/worklet/Worklet.h File ...
4 years, 10 months ago (2016-02-16 19:34:14 UTC) #8
kinuko
lgtm https://codereview.chromium.org/1684303002/diff/60001/third_party/WebKit/Source/modules/worklet/Worklet.cpp File third_party/WebKit/Source/modules/worklet/Worklet.cpp (right): https://codereview.chromium.org/1684303002/diff/60001/third_party/WebKit/Source/modules/worklet/Worklet.cpp#newcode66 third_party/WebKit/Source/modules/worklet/Worklet.cpp:66: if (resolver->executionContext() || resolver->executionContext()->activeDOMObjectsAreStopped()) { On 2016/02/16 19:34:14, ...
4 years, 10 months ago (2016-02-17 05:14:32 UTC) #9
ikilpatrick
https://codereview.chromium.org/1684303002/diff/60001/third_party/WebKit/Source/modules/worklet/Worklet.cpp File third_party/WebKit/Source/modules/worklet/Worklet.cpp (right): https://codereview.chromium.org/1684303002/diff/60001/third_party/WebKit/Source/modules/worklet/Worklet.cpp#newcode66 third_party/WebKit/Source/modules/worklet/Worklet.cpp:66: if (resolver->executionContext() || resolver->executionContext()->activeDOMObjectsAreStopped()) { On 2016/02/17 05:14:32, kinuko ...
4 years, 10 months ago (2016-02-17 22:41:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1684303002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1684303002/80001
4 years, 10 months ago (2016-02-17 23:51:57 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/147104)
4 years, 10 months ago (2016-02-18 00:06:34 UTC) #15
ikilpatrick
+levi for RuntimeEnabledFeatures.in OWNERS :)
4 years, 10 months ago (2016-02-18 00:41:06 UTC) #17
leviw_travelin_and_unemployed
lgtm
4 years, 10 months ago (2016-02-18 02:36:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1684303002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1684303002/120001
4 years, 10 months ago (2016-02-18 18:57:34 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-18 21:41:33 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 21:42:40 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3931071f1feca0ed359ab392b1a4a48ac135e830
Cr-Commit-Position: refs/heads/master@{#376271}

Powered by Google App Engine
This is Rietveld 408576698