Closed Bug 1574365 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 18477 - [SyntheticModules] Allows for Fetching and Loading of JSON/Synthetic Modules

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla70
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 chromium

Bug: 967018
Change-Id: Ibcdb61659fb07047ffeead2ff4a55c450c183e43
Reviewed-on: https://chromium-review.googlesource.com/1731108
WPT-Export-Revision: cfb13f0892b9eaec9dfbda5a9c05fcb26cb9d59b

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
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
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.