Open
Bug 1436118
Opened 6 years ago
Updated 2 years ago
There should be a console message when a script is not run because it has type `application/javascript;version=1.8`
Categories
(DevTools :: Console, defect, P2)
DevTools
Console
Tracking
(Not tracked)
NEW
People
(Reporter: fitzgen, Unassigned)
Details
Very confusing to debug this without any idea why the script is not being run, and not showing up inside the debugger source list, despite the netmonitor showing that it was fetched OK.
Comment 1•6 years ago
|
||
Do you know where in the platform the script is getting ignored? We can use nsContentUtils::ReportToConsole from there to send a message to the console.
Flags: needinfo?(nfitzgerald)
Reporter | ||
Comment 2•6 years ago
|
||
Unfortunately, I don't. Maybe ask in #content?
Flags: needinfo?(nfitzgerald)
Comment 3•6 years ago
|
||
https://searchfox.org/mozilla-central/rev/84cea84b12145d752e50ddca6be5462c38510e35/dom/script/ScriptLoader.cpp#1272 Warning on all invalid script types is probably not OK; they're commonly used for webgl data and whatnot. We could warn if the type starts with "application/javascript" though... But what about "text/javascript; version=1.8"? Also, no other browser has supported this for a while, if ever, so this would really be just about our own internal code?
Comment 4•6 years ago
|
||
(In reply to Boris Zbarsky [:bz] (no decent commit message means r-) from comment #3) > Also, no other browser has supported this for a while, if ever, so this > would really be just about our own internal code? I also don't see any hits in-tree for "version=1.8": https://dxr.mozilla.org/mozilla-central/search?q=version%3D1.8&redirect=false. I know we used to have it but I guess they got rewritten.
Comment 5•6 years ago
|
||
Right, when we removed support for it.
Comment 6•6 years ago
|
||
FWIW I do see results on a github code search for "application/javascript;version=1.8" (and also 1.7) https://github.com/search?q=%22application%2Fjavascript%3Bversion%3D1.8%22&type=Code&utf8=%E2%9C%93
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Priority: -- → P2
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•