Closed
Bug 1607331
Opened 6 years ago
Closed 4 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
(1 file, 3 external files, 2 obsolete files)
|
17.27 KB,
text/plain
|
Details |
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•6 years ago
|
||
Updated•6 years ago
|
Blocks: esm-ification
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Attachment #9118957 -
Attachment is obsolete: true
| Reporter | ||
Updated•6 years ago
|
Assignee: dtownsend → nobody
| Assignee | ||
Updated•4 years ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
Modified some rules and also added rule to block globalThis property assign.
| Assignee | ||
Comment 3•4 years ago
|
||
Fixed the rule to ignore this inside class properties/methods/static block
Attachment #9273978 -
Attachment is obsolete: true
| Assignee | ||
Updated•4 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•4 years ago
|
||
| Assignee | ||
Comment 5•4 years ago
|
||
Depends on D148550
| Assignee | ||
Comment 6•4 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•4 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•4 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 9•4 years ago
|
||
Updated•4 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•4 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•4 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•4 years ago
|
Keywords: leave-open
Comment 11•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/17f053b1840d
https://hg.mozilla.org/mozilla-central/rev/0d1185dbe3e2
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox103:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Updated•4 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
•