Closed Bug 1938307 Opened 8 months ago Closed 7 months ago

Show more details for "None of the sha512 hashes match the integrity..." error

Categories

(Core :: DOM: Security, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: Honza, Assigned: tschuster)

References

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

Originally reported on Connect: https://connect.mozilla.org/t5/ideas/show-more-details-for-quot-none-of-the-sha512-hashes-match-the/idi-p/79310

I usually use firefox to develop my website and then move it over to chrome.
I noticed this issue with Firefox.
It does not give a detailed enough error message to properly debug the issue.

Most websites will have quite a few script/link tags, so it is very tedious to manually check the hash of each one.

In chrome, it simply gives you the URL for the resource that failed the hash check.
Firefox should update this to give some more details (ie. the path).

In firefox:
" None of the “sha512” hashes in the integrity attribute match the content of the subresource. The computed hash is “..." app_name"

In chrome:
Failed to find a valid digest in the 'integrity' attribute for resource 'url_to_file' with computed SHA-512 integrity '...'. The resource has been blocked. app_name

This is where the message is defined https://searchfox.org/mozilla-release/rev/d8f30fc43d8a411937b53bb95eb9555356e9bcb8/dom/locales/en-US/chrome/security/security.properties#62

I'll ask Tom if we could also include the URL in the message when he's back

Component: Debugger → DOM: Security
Product: DevTools → Core
No longer blocks: csp-console-logging
Assignee: nobody → tschuster
Severity: -- → N/A
Whiteboard: [domsecurity-active]
Pushed by tschuster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c0817645bdf Include the resource URI for failed SRI checks. r=freddyb
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: