Closed Bug 1765319 Opened 2 years ago Closed 2 years ago

Stop using global this to access global variable

Categories

(Firefox :: General, task)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(5 files, 1 obsolete file)

Related to bug 1610653.

This bug is for fixing the case that global this is used for accessing global variable unnecessarily.

Depends on D144131

Attachment #9273006 - Attachment is obsolete: true
Attachment #9273004 - Attachment description: WIP: Bug 1765319 - Part 1: Do not use global this in CustomizableUI.jsm. → Bug 1765319 - Part 1: Do not use global this in CustomizableUI.jsm. r?Standard8!
Attachment #9273005 - Attachment description: WIP: Bug 1765319 - Part 2: Do not use global this in symbolication.jsm.js. → Bug 1765319 - Part 2: Do not use global this in symbolication.jsm.js. r?canaltinova!
Attachment #9273007 - Attachment description: WIP: Bug 1765319 - Part 4: Use globalThis in deserialize. → Bug 1765319 - Part 3: Use globalThis in deserialize. r?kmag!
Attachment #9273008 - Attachment description: WIP: Bug 1765319 - Part 5: Stop using global this to access global variable in services/. → Bug 1765319 - Part 4: Stop using global this to access global variable in services/. r?Gijs!
Attachment #9273009 - Attachment description: WIP: Bug 1765319 - Part 6: Stop using global this to access global variable in toolkit/. → Bug 1765319 - Part 5: Stop using global this to access global variable in toolkit/. r?Gijs!
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/56baea71b994
Part 1: Do not use global this in CustomizableUI.jsm. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/38119aa4c67e
Part 2: Do not use global this in symbolication.jsm.js. r=canaltinova
https://hg.mozilla.org/integration/autoland/rev/c8514b8605ac
Part 3: Use globalThis in deserialize. r=mixedpuppy
https://hg.mozilla.org/integration/autoland/rev/976005722087
Part 4: Stop using global this to access global variable in services/. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/8de99049f3e3
Part 5: Stop using global this to access global variable in toolkit/. r=Gijs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: