-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part 4: wpt for injecting a <base> element for import-maps.
This test introduces two new functions to test the base url functionality. In addition, we have a new helper function: testInIframeInjectBase, which injects a base url before the content with the import map is parsed. The two tests test the following: 1. Static import coming after the import map and injected base element 2. Dynamic import coming after the import map and injected base element Differential Revision: https://phabricator.services.mozilla.com/D150719 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1773997 gecko-commit: 12620b755d6b0af8909f0249e37af4c5c1893b83 gecko-reviewers: jonco, yulia
- Loading branch information
1 parent
d6a7d48
commit b10070d
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const el = document.createElement("base"); | ||
el.href = "{{GET[baseurl]}}"; | ||
document.currentScript.after(el); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters