Open
Bug 1452996
Opened 6 years ago
Updated 2 years ago
Emit console warning for script tags with version parameters (rather than just silently ignore them)
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: tromey, Unassigned)
References
Details
(Keywords: regression)
I had a web site that did: <script src="blah.js" type="text/javascript;version=1.7"></script> This worked fine at some point, but when I updated to 59.0 (I think), it stopped working. The fix was to remove the ";version=1.7". Having it not work is fine; however, this changed silently. It would have been simpler to debug if the failure had been logged to the console.
Comment 1•6 years ago
|
||
Possibly a regression from bug 1417844? That landed in 59 and affected how we deal with JS versions...
Component: DOM: Core & HTML → JavaScript Engine
Keywords: regression
Comment 2•6 years ago
|
||
This was actually caused by bug 1428745. I think from some telemetry I looked at before, versioned JS usage was basically non-existent, because the code would not execute in other browsers.
Blocks: 1428745
Component: JavaScript Engine → DOM
Updated•6 years ago
|
Component: DOM → Desktop
Product: Core → Tech Evangelism
Comment 3•6 years ago
|
||
It’s documented here: https://www.fxsitecompat.com/en-CA/docs/2018/script-with-version-parameter-will-no-longer-be-loaded/
Reporter | ||
Comment 4•6 years ago
|
||
(In reply to Kohei Yoshino [:kohei] from comment #3) > It’s documented here: > https://www.fxsitecompat.com/en-CA/docs/2018/script-with-version-parameter- > will-no-longer-be-loaded/ One idea for handling this would be to emit a warning with a [Learn more] link to that URL.
Comment 5•6 years ago
|
||
(In reply to Tom Tromey :tromey from comment #4) > (In reply to Kohei Yoshino [:kohei] from comment #3) > > It’s documented here: > > https://www.fxsitecompat.com/en-CA/docs/2018/script-with-version-parameter- > > will-no-longer-be-loaded/ > > One idea for handling this would be to emit a warning with a [Learn more] > link to that URL. That sounds sensible. Moving to Core::Dom, not sure if that's the right place for this kind of feature request.
Component: Desktop → DOM
Product: Tech Evangelism → Core
Summary: script tag silently ignored in 59 → Emit console warning for script tags with version parameters (rather than just silently ignore them)
Updated•6 years ago
|
Priority: -- → P3
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•