mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
After debugging some of the failing tests, it appears spec text is wrong. Inside [merge existing and new import maps](https://html.spec.whatwg.org/multipage/#merge-existing-and-new-import-maps) algorithm, when checking which imports needs to be ignored, specification will check if each _specifier_ of _newImportMap's imports_ will override any specifier of [resolved module set](https://html.spec.whatwg.org/multipage/#resolved-module-set), by checking if specifier starts with `record.specifier`. Since each specifier gets normalized before they are inserted in the resolved module set, the are cases where the check fails and we end up overriding a module resolution. This was an oversight, since for _newImportMap's scopes_ specification performs the right check: `specifierKey is a code unit prefix of record's specifier;` Testing: More tests are now passing Part of #37553 --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
81 KiB
81 KiB