[wpt-sync] Sync PR 18477 - [SyntheticModules] Allows for Fetching and Loading of JSON/Synthetic Modules
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 18477 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/18477
Details from upstream follow.
Sam Sebree <sasebree@microsoft.com> wrote:
[SyntheticModules] Allows for Fetching and Loading of JSON/Synthetic Modules
This is the final change required for JSON Modules to be utilized by developers.
Following the acceptance of this change, if you run chromium with the JSONModules runtime flag, the following is now valid syntax:\<script type="module">
import data from "./example.json";
\</script>This change introduces several things:
-It introduces the ability for ModuleScriptLoader to load JSON Modules
-It introduces the ability for ModuleScriptFetcher to retrieve JSON resources
-It introduces a new field to ModuleScriptCreationParams: response_mime_type_
-It introduces the JSONModules runtime flag to chromiumBug: 967018
Change-Id: Ibcdb61659fb07047ffeead2ff4a55c450c183e43
Reviewed-on: https://chromium-review.googlesource.com/1731108
WPT-Export-Revision: cfb13f0892b9eaec9dfbda5a9c05fcb26cb9d59b
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=c32f0ba76c37e9bd02f4f9e74b8294c04679851a
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=23146fe35c16110b0fc05809d35044037a294053
Assignee | ||
Comment 3•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=6e95cfe5aaa541262b374632a456b04dcf0738ec
Assignee | ||
Comment 4•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=091e072a83bffffd6859597b4e1c69ac6608dbb7
Assignee | ||
Comment 5•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=7bb4db85ee158d0dc4d277156f5a8f9c2af27a7d
Assignee | ||
Comment 6•5 years ago
|
||
Ran 4 tests and 7 subtests OK : 3 FAIL : 7 TIMEOUT: 1
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/bff8292409ef [wpt PR 18477] - [SyntheticModules] Allows for Fetching and Loading of JSON/Synthetic Modules, a=testonly
Comment 8•5 years ago
|
||
bugherder |
Description
•