Open Bug 1452996 Opened 7 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)

defect

Tracking

()

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.
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
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
Component: DOM → Desktop
Product: Core → Tech Evangelism
(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.
(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)
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.