[Import Maps] Fix rejection of multiple import maps
Previously, second successful import map was rejected during registration. It didn't trigger error events, and the second import map wasn't rejected if the first import map had errors. This CL follows https://github.com/WICG/import-maps/pull/242 and changes these behavior (the second import map is rejected with an error event no matter whether the first import map has errors). This CL also introduces Modulator::AcquiringImportMapsState, just for better error messaging. Bug: 848607 Change-Id: Iadfc59dc0ae9b64262908dbf27d44a4c24a74c05 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2618838Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#843277}
Showing
Please register or sign in to comment