Closed
Bug 1607331
Opened 5 years ago
Closed 3 years ago
Reject global this usage in JSM except for special cases
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox103 fixed)
RESOLVED
FIXED
103 Branch
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: mossop, Assigned: arai)
References
Details
Attachments
(4 files, 2 obsolete files)
We want to gather an understanding of the uses of global this in JSM files which would be unavailable when using the same code as an ES6 module. Going to add a patch here that lints for that case though for now we won't want to land it.
Reporter | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Blocks: esm-ification
Updated•5 years ago
|
Priority: -- → P3
Updated•5 years ago
|
Attachment #9118957 -
Attachment is obsolete: true
Reporter | ||
Updated•5 years ago
|
Assignee: dtownsend → nobody
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Modified some rules and also added rule to block globalThis
property assign.
Assignee | ||
Comment 3•3 years ago
|
||
Fixed the rule to ignore this
inside class properties/methods/static block
Attachment #9273978 -
Attachment is obsolete: true
Assignee | ||
Updated•3 years ago
|
Summary: Investigate the uses of the global this in JSMs → Reject global this usage in JSM except for special cases
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D148550
Assignee | ||
Comment 6•3 years ago
|
||
remaining usage:
https://docs.google.com/spreadsheets/d/1U31iGt-2kpoEmuPSrIKG2Cd7iZjyRKlwa0eeskzsuf8/edit?usp=sharing
some are not-yet-landed patch in bug 1772101 or https://phabricator.services.mozilla.com/D148872
Assignee | ||
Updated•3 years ago
|
Keywords: leave-open
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/7fdd8b0bb660
Part 1: Do not use global this in remote/shared/messagehandler/transports/FrameTransport.jsm. r=jdescottes,webdriver-reviewers
Comment 8•3 years ago
|
||
bugherder |
Assignee | ||
Comment 9•3 years ago
|
||
Updated•3 years ago
|
Attachment #9280113 -
Attachment description: Bug 1607331 - Part 2: Reject global this usage in JSM. r?Standard8 → Bug 1607331 - Part 2: Reject global this usage in JSM. r?Standard8!
Updated•3 years ago
|
Attachment #9280113 -
Attachment description: Bug 1607331 - Part 2: Reject global this usage in JSM. r?Standard8! → Bug 1607331 - Part 3: Reject global this usage in JSM. r?Standard8!
Comment 10•3 years ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/17f053b1840d
Part 2: Do not use global this in browser/components/newtab/lib/DiscoveryStreamFeed.jsm. r=Standard8
https://hg.mozilla.org/integration/autoland/rev/0d1185dbe3e2
Part 3: Reject global this usage in JSM. r=Standard8
Assignee | ||
Updated•3 years ago
|
Keywords: leave-open
Comment 11•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/17f053b1840d
https://hg.mozilla.org/mozilla-central/rev/0d1185dbe3e2
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox103:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•