Open Bug 1941311 Opened 28 days ago Updated 28 days ago

Content blocking causes multiple other errors to show in console

Categories

(Core :: DOM: Core & HTML, enhancement)

Firefox 134
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: martin.green, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0

Steps to reproduce:

Tested with my website that uses cloudflare analytics with content blocking set to Strict instead of Standard. Should see the same errors on any website that uses CORS and SRI on something that gets blocked.

Tested with 134.0 and Nightly 136.0a1 (2025-01-12)

Actual results:

When content blocking blocks a file, that file will then fail CORS and SRI checks causing extra incorrect log entries to be added.

The resource at “https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015” was blocked because content blocking is enabled.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015. (Reason: CORS request did not succeed). Status code: (null).
None of the “sha512” hashes in the integrity attribute match the content of the subresource. The computed hash is “XXXX”.

Expected results:

Ideally it would only show the content blocked warning and not the other errors as they are confusing for developers trying to find actual problems.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.