Convert toolkit/components/timermanager to ES modules
Categories
(Toolkit :: Application Update, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: standard8, Assigned: anwar.rhsl, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [esmification-timeline][lang=js])
Attachments
(1 file, 1 obsolete file)
I'm happy to mentor work towards this bug. Please don't ask to be assigned to it, though you can say you're working on it - please respect other contributors comments as well. You'll be automatically assigned when you upload the first patches.
Here's what to do:
- Make sure you have a local build of Firefox up and running. Use these instructions if you haven't already.
- If you need help setting up, ask in #introduction on Matrix
- Using the ESMification walkthrough as a guide:
- Run
./mach esmify --convert path/to/files
- Examine the output for any errors from ESLint and fix them.
- Next convert the imports -
./mach esmify --import . --prefix path/to/files
- Again, check for any errors and fix them.
- Run a build to check it passes.
- Also run
./mach eslint --fix path/to/files
and check there are no raised failures - Commit the changes with a commit messages such as "Bug nnnnnn - Convert path/to/files to ES modules. r?Standard8"
- Run
- Use
moz-phab submit
to submit the patches for review.
Assignee | ||
Comment 1•3 years ago
|
||
I am working on it
Comment 2•3 years ago
|
||
I am an outreachy intern. Will be working on this.
Assignee | ||
Comment 3•3 years ago
|
||
After running the ./mach esmify --import . --prefix path/to/files
, I got the error unexpected reserved word 'private'
in the file toolkit\components\resistfingerprinting\tests\browser\browser_fingerprinting_randomization_key.js
.
How do go about this?
Reporter | ||
Comment 4•3 years ago
|
||
(In reply to Anwar Sadat Ayub from comment #3)
After running the
./mach esmify --import . --prefix path/to/files
, I got the errorunexpected reserved word 'private'
in the filetoolkit\components\resistfingerprinting\tests\browser\browser_fingerprinting_randomization_key.js
.
How do go about this?
I assume that is from this code.
This is saying that private
is normally expected to be used only in particular situations, and not as a variable name. Hence in this case you can change the for loop variable to something else, I think I would go with testPrivateWin
. You'll need to change where that variable is used within the loop as well.
Assignee | ||
Comment 5•3 years ago
|
||
That's exactly where the code is and thanks for the guide
Updated•3 years ago
|
Comment 6•3 years ago
|
||
I will take a look at this if it hasn't been assigned.
Reporter | ||
Comment 7•3 years ago
|
||
(In reply to Ekene Nwobodo from comment #6)
I will take a look at this if it hasn't been assigned.
Please make sure you read the comments, especially the first line of comment 0. Anwar is already working on this.
Comment 8•3 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #7)
(In reply to Ekene Nwobodo from comment #6)
I will take a look at this if it hasn't been assigned.
Please make sure you read the comments, especially the first line of comment 0. Anwar is already working on this.
No problems. Thanks
Assignee | ||
Comment 9•3 years ago
|
||
Comment 10•3 years ago
|
||
Comment on attachment 9322937 [details]
Bug 1821901 - Convert toolkit/components/timermanager to ES modules.r?Standard8
Revision D172548 was moved to bug 1822336. Setting attachment 9322937 [details] to obsolete.
Assignee | ||
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
Comment 13•3 years ago
|
||
bugherder |
Description
•