Closed Bug 1945540 Opened 8 months ago Closed 7 months ago

Implement importmap integrity verification

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
relnote-firefox --- 138+
firefox138 --- fixed

People

(Reporter: fkilic, Assigned: fkilic)

References

(Blocks 2 open bugs, )

Details

(Keywords: dev-doc-complete)

Attachments

(4 files)

This bug aims to track the implementation of https://github.com/mozilla/standards-positions/issues/1010

This patch does two things. First one is, it checks for the existence of "integrity" property in the script tag and drills down that value, and the second one is it implements loading of integrity values from the ImportMap and adds the SRI metadata to script load requests.

Duplicate of this bug: 1892199
Blocks: html, 1916277
Attachment #9463510 - Attachment description: Bug 1945540: Implement importmap integrity. r?tjr,tschuster → Bug 1945540: Part 3 - Get integrity from import map. r?jonco,tschuster
Attachment #9463511 - Attachment description: Bug 1945540: Enable WPT tests. r?tjr,tschuster → Bug 1945540: Enable WPT tests. r?tschuster
Severity: -- → N/A
Priority: -- → P3
Pushed by fkilic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/083f906721f4 Part 1 - Implement parsing of integrity field. r=tschuster,jonco https://hg.mozilla.org/integration/autoland/rev/de72c7441c29 Part 2 - Make integrity VoidString if no integrity attribute was provided. r=tschuster https://hg.mozilla.org/integration/autoland/rev/690179550da9 Part 3 - Get integrity from import map. r=tschuster,jonco,dom-core,mccr8 https://hg.mozilla.org/integration/autoland/rev/c9a2c8a3f840 Enable WPT tests. r=tschuster
Keywords: dev-doc-needed

Release Note Request (optional, but appreciated)
[Why is this notable]: We now support importmap integrity verification. I think it is important for devs.
[Affects Firefox for Android]: Yes (not the UI, but affects the engine)
[Suggested wording]: Added support for import map integrity field. You can now ensure the integrity of dynamically or statically imported modules.
[Links (documentation, blog post, etc)]: Previous notes for import map's introduction https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/108#apis, and import map integrity description on MDNN https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap#integrity_metadata_map

relnote-firefox: --- → ?

Added to the 138 beta notes and will include in the final release notes.

Related issues and pull requests

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: