Move certviewer code to use mjs files, rather than defining sourceType for ESLint
Categories
(Firefox :: Security, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
With the transition to using ES modules rather than JSMs getting started, we are now using the .mjs
extension for those files.
We'd like to transition our content code that is using modules to use the .mjs
extension as well - the primary gains of this are that we a) don't need to manually specify sourceType: module
for ESLint, b) this gives a visual distinction to developers that the file is a module rather than a regular JavaScript file.
This bug is for:
browser/base/content/certerror/aboutNetError.js
- Files & tests under
toolkit/components/certviewer
Note: this depends on bug 1768816 as I think it'll be easier to do the transition once the system files have been transitioned as well.
Bug 1811633 took care of toolkit/components/certviewer
.
Assignee | ||
Comment 2•2 years ago
|
||
Bug 1734217 took care of browser/base/content/certerror/aboutNetError.js
Assignee | ||
Comment 3•2 years ago
|
||
I just realised that areweesmifiedyet is still showing 5 files for toolkit/components/certviewer/.
Looks like bug 1811633 missed removing the old jsm files. There's also a couple of actors to update.
Assignee | ||
Comment 4•2 years ago
|
||
Assignee | ||
Comment 5•2 years ago
|
||
Depends on D172795
Comment 7•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/87fdef76da4c
https://hg.mozilla.org/mozilla-central/rev/576a12d4be5b
Description
•