[Import Maps] Introduce PendingImportMap and report exceptions
This CL introduce PendingImportMap to align import map implementation with spec structure and PendingScript processing. (When external import maps are introduced, PendingImportMap will control pending fetches and import map registration order) This CL also plumbs parse errors via PendingImportMap to ModulatorImplBase::RegisterImportMap() and fires window error events. Previously, console errors were output but no error events were fired. (This CL also adds a check for import maps moved between documents, but currently it is no-op because we can't move inline import maps between documents before registration) Bug: 990561 Change-Id: Ic3f818bcc52b698dde5456a70bbe3516eee73f5b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1760841 Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#692320}
Showing
Please register or sign in to comment