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
Review URL: https://codereview.chromium.org/1684303002
Cr-Commit-Position: refs/heads/master@{#376271}
10 files changed