script: complete resolve_module_specifier (#37552)

Implement whole spec of `resolve_module_specifier`. Servo can now
support script element with import map type!

Testing: `tests/wpt/tests/import-map`
Fixes: #37316 #36394

---------

Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
This commit is contained in:
Ngo Iok Ui (Wu Yu Wei) 2025-06-21 15:17:27 +09:00 committed by GitHub
parent d7269c0f3b
commit 927573de97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 376 additions and 281 deletions

View file

@ -0,0 +1,2 @@
[already-resolved-dropped.html]
expected: CRASH

View file

@ -1,3 +0,0 @@
[basic.html]
[Second import map should be used for resolution]
expected: FAIL

View file

@ -1,9 +0,0 @@
[conflict-first-persists.html]
[First defined rule persists in case of conflict]
expected: FAIL
[First defined rule persists in case of conflict - prefixed bare specifiers]
expected: FAIL
[First defined rule persists in case of conflict - non-prefix bare specifier]
expected: FAIL

View file

@ -1,3 +0,0 @@
[resolution-consistency-in-module-tree-inline.html]
[Module tree that started to download before a new import map should still take it into account]
expected: FAIL

View file

@ -1,3 +0,0 @@
[resolution-consistency-in-module-tree.html]
[Module tree that started to download before a new import map should still take it into account]
expected: FAIL

View file

@ -1,3 +0,0 @@
[url-resolution-conflict.html]
[Second import map should not override same resolved URL]
expected: FAIL

View file

@ -1,3 +0,0 @@
[with-errors.html]
[Second import map should be used for resolution even after an import map with errors]
expected: FAIL