DescriptionAdd 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)
|