Intent to Prototype and Ship: ES Modules for service workers ('module' type option)

234 views
Skip to first unread message

Ghazale Hosseinabadi

unread,
Mar 12, 2021, 4:00:10 PM3/12/21
to blin...@chromium.org

Contact emails

gha...@chromium.org


Explainer


https://github.com/w3c/ServiceWorker/commit/6d9500e99e764c12b117c63d10107e094d243662


Specification

https://w3c.github.io/ServiceWorker/#service-worker-concept


Design docs


https://docs.google.com/document/d/1SeQ085YdBTtW3D_ygSpO0Wz2DAe8QiS1gj37IG5lstg/edit#


Summary

JavaScript will support modules in service workers. Setting 'module' type by the constructor's type attribute, worker scripts are loaded as ES modules and the import statement is available on worker contexts.



Blink component

Blink>ServiceWorker


TAG review

https://github.com/w3ctag/design-reviews/issues/617


TAG review status

Pending


Risks



Interoperability and Compatibility



Gecko: Positive (https://github.com/mozilla/standards-positions/issues/499) https://bugzilla.mozilla.org/show_bug.cgi?id=1360870


WebKit: Positive (https://webkit.org/blog/11577/release-notes-for-safari-technology-preview-122/)


Web developers: Positive



Is this feature fully tested by web-platform-tests?

Yes


Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=824647


Link to entry on the Chrome Platform Status

https://www.chromestatus.com/feature/4609574738853888


Matt Falkenhagen

unread,
Mar 15, 2021, 10:47:14 PM3/15/21
to Ghazale Hosseinabadi, blink-dev
I support shipping this (non-owner).

2021年3月13日(土) 6:00 Ghazale Hosseinabadi <gha...@chromium.org>:
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CANaVSCzVwT4_j%3Df8Wgx18tTQ8_Vc7mkQYHZtTFOC5ec0tZZSVQ%40mail.gmail.com.

Chris Harrelson

unread,
Mar 16, 2021, 4:39:04 PM3/16/21
to Matt Falkenhagen, Ghazale Hosseinabadi, blink-dev
LGTM1

On Mon, Mar 15, 2021 at 7:47 PM Matt Falkenhagen <fal...@chromium.org> wrote:
I support shipping this (non-owner).

2021年3月13日(土) 6:00 Ghazale Hosseinabadi <gha...@chromium.org>:

Contact emails

gha...@chromium.org


Explainer


https://github.com/w3c/ServiceWorker/commit/6d9500e99e764c12b117c63d10107e094d243662


Specification

https://w3c.github.io/ServiceWorker/#service-worker-concept


Design docs


https://docs.google.com/document/d/1SeQ085YdBTtW3D_ygSpO0Wz2DAe8QiS1gj37IG5lstg/edit#


Summary

JavaScript will support modules in service workers. Setting 'module' type by the constructor's type attribute, worker scripts are loaded as ES modules and the import statement is available on worker contexts.



Blink component

Blink>ServiceWorker


TAG review

https://github.com/w3ctag/design-reviews/issues/617


TAG review status

Pending


Risks



Interoperability and Compatibility



Gecko: Positive (https://github.com/mozilla/standards-positions/issues/499) https://bugzilla.mozilla.org/show_bug.cgi?id=1360870


WebKit: Positive (https://webkit.org/blog/11577/release-notes-for-safari-technology-preview-122/)


Nit: "shipped/shipping" looks accurate.
 

Web developers: Positive



Is this feature fully tested by web-platform-tests?

Yes


Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=824647


Link to entry on the Chrome Platform Status

https://www.chromestatus.com/feature/4609574738853888


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CANaVSCzVwT4_j%3Df8Wgx18tTQ8_Vc7mkQYHZtTFOC5ec0tZZSVQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Yoav Weiss

unread,
Mar 17, 2021, 11:59:50 AM3/17/21
to Chris Harrelson, Matt Falkenhagen, Ghazale Hosseinabadi, blink-dev

Manuel Rego Casasnovas

unread,
Mar 18, 2021, 7:25:14 AM3/18/21
to Yoav Weiss, Chris Harrelson, Matt Falkenhagen, Ghazale Hosseinabadi, blink-dev
LGTM3

On 17/03/2021 08:43, Yoav Weiss wrote:
> LGTM2
>
> On Tue, Mar 16, 2021 at 9:39 PM Chris Harrelson <chri...@chromium.org
> <mailto:chri...@chromium.org>> wrote:
>
> LGTM1
>
> On Mon, Mar 15, 2021 at 7:47 PM Matt Falkenhagen
> <fal...@chromium.org <mailto:fal...@chromium.org>> wrote:
>
> I support shipping this (non-owner).
>
> 2021年3月13日(土) 6:00 Ghazale Hosseinabadi
> <gha...@chromium.org <mailto:gha...@chromium.org>>:
>
>
> Contact emails
>
> gha...@chromium.org <mailto:gha...@chromium.org>
>
>
> Explainer
>
>
> https://github.com/w3c/ServiceWorker/commit/6d9500e99e764c12b117c63d10107e094d243662
> <https://github.com/w3c/ServiceWorker/commit/6d9500e99e764c12b117c63d10107e094d243662>
>
>
> Specification
>
> https://w3c.github.io/ServiceWorker/#service-worker-concept
> <https://w3c.github.io/ServiceWorker/#service-worker-concept>
>
>
> Design docs
>
>
> https://docs.google.com/document/d/1SeQ085YdBTtW3D_ygSpO0Wz2DAe8QiS1gj37IG5lstg/edit#
> <https://docs.google.com/document/d/1SeQ085YdBTtW3D_ygSpO0Wz2DAe8QiS1gj37IG5lstg/edit#>
>
>
> Summary
>
> JavaScript will support modules in service workers. Setting
> 'module' type by the constructor's type attribute, worker
> scripts are loaded as ES modules and the import statement is
> available on worker contexts.
>
>
>
> Blink component
>
> Blink>ServiceWorker
> <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EServiceWorker>
>
>
> TAG review
>
> https://github.com/w3ctag/design-reviews/issues/617
> <https://github.com/w3ctag/design-reviews/issues/617>
>
>
> TAG review status
>
> Pending
>
>
> Risks
>
>
>
> Interoperability and Compatibility
>
>
>
> Gecko: Positive
> (https://github.com/mozilla/standards-positions/issues/499
> <https://github.com/mozilla/standards-positions/issues/499>)
> https://bugzilla.mozilla.org/show_bug.cgi?id=1360870
> <https://webkit.org/blog/11577/release-notes-for-safari-technology-preview-122/>)
>
>
> Nit: "shipped/shipping" looks accurate.
>  
>
>
> Web developers: Positive
>
>
>
> Is this feature fully tested by web-platform-tests
> <https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>?
>
> Yes
>
>
> Tracking bug
>
> https://bugs.chromium.org/p/chromium/issues/detail?id=824647
> <https://bugs.chromium.org/p/chromium/issues/detail?id=824647>
>
>
> Link to entry on the Chrome Platform Status
>
> https://www.chromestatus.com/feature/4609574738853888
> <https://www.chromestatus.com/feature/4609574738853888>
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to blink-dev+...@chromium.org
> <mailto:blink-dev+...@chromium.org>.
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CANaVSCzVwT4_j%3Df8Wgx18tTQ8_Vc7mkQYHZtTFOC5ec0tZZSVQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the
> Google Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to blink-dev+...@chromium.org
> <mailto:blink-dev+...@chromium.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJ_xCi%3D29Z_gaZSr6%2BSPws%2B0JuXg_PmGp9p%2Be-buJqusQ1U%2Bzg%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJ_xCi%3D29Z_gaZSr6%2BSPws%2B0JuXg_PmGp9p%2Be-buJqusQ1U%2Bzg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to blink-dev+...@chromium.org
> <mailto:blink-dev+...@chromium.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_R8za-rjtEjHD0QY7zMeGY9QFjPT0L2SjQbT8HDKHW2g%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_R8za-rjtEjHD0QY7zMeGY9QFjPT0L2SjQbT8HDKHW2g%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to blink-dev+...@chromium.org
> <mailto:blink-dev+...@chromium.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfWYr3mV9n6JVS95CQnfT8OHAHj1e6EsYDfmz4kKkbZtMg%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfWYr3mV9n6JVS95CQnfT8OHAHj1e6EsYDfmz4kKkbZtMg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Alan Cutter

unread,
Mar 18, 2021, 11:29:19 AM3/18/21
to blink-dev, yoav...@chromium.org, Matt Falkenhagen, Ghazale Hosseinabadi, blink-dev, Chris Harrelson
Very excited for this, this lets me share code between HTML and SW.
Reply all
Reply to author
Forward
0 new messages