Add tests for loading import maps with <base> element
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
Details
Attachments
(4 files)
See https://github.com/WICG/import-maps#base-element
If there's a <base> element, it will change the base URI of the document, which will also change the baseURL in import maps.
So we should have some tests to make sure import maps behaves correctly with the <base> element.
Also, the test could be used to test the speculative parsing of import maps in Bug 1762595
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
With the <base> element, the relative path will be changed, therefore
modifying the script.src to use absolute paths if it's using relative path.
Assignee | ||
Comment 3•3 years ago
|
||
With <base> element changes the base URL to "./resources/", the baseURL
of the import map should be updated as well.
The url "log.js" in the import map will be resolved to "./resources/log.js".
Assignee | ||
Comment 4•3 years ago
|
||
Add a helper function called testInIframeInjectBase, which will include
a Javascript file, which will in turn inject a <base> element into current
document.
Updated•3 years ago
|
Comment 7•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4c39a082c94b
https://hg.mozilla.org/mozilla-central/rev/7754a95427ef
https://hg.mozilla.org/mozilla-central/rev/968815f882d2
https://hg.mozilla.org/mozilla-central/rev/12620b755d6b
Description
•