Open Bug 1563670 Opened 6 years ago Updated 3 years ago

ScriptSourceLoadFailed/ModuleSourceLoadFailed error messages could be more helpful

Categories

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

enhancement

Tracking

()

Tracking Status
firefox69 --- affected

People

(Reporter: nchevobbe, Unassigned)

References

Details

I was investigating a bug for which someone put a test page (https://tracking-protection-ga.glitch.me/), but it doesn't seem to work as expected because I get the following error:

Loading failed for the <script> with source “https://www.googletagmanager.com/gtag/js?id=UA-1648932-9”.

The confusing part is that if I click on the URL, I can see the file being used, so it's not that the file isn't available, but, something else I guess? I can't really tell from the message (and it doesn't appear in netmonitor, so I get 0 clue).

I don't know if we could know why this given script couldn't be loaded, and put that in the message to help the developer diagnose this?


(If I try to load the script with dynamic import, at least I get a message saying the CORS request was blocked, but I don't know if we have the same mechanism for loading script than with the script tag, so I don't know if I can rely on that)

I was seeing the message because of Ublock, turning it off removes it.
I always forgot about this, so if the message could say "loading failed because it was blocked by Ublock/a webextension" that would be great :)

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.