Closed
Bug 1765737
Opened 3 years ago
Closed 3 years ago
Stop passing per-JSM global this to Cu.cloneInto
Categories
(Toolkit :: General, task)
Toolkit
General
Tracking
()
RESOLVED
FIXED
102 Branch
| Tracking | Status | |
|---|---|---|
| firefox102 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(2 files)
The 2nd parameter of Cu.cloneInto is a scope, that's used only for JSAutoRealm.
It's not necessary to be global this, but anything belongs to the same realm works.
| Assignee | ||
Comment 1•3 years ago
|
||
So far, confirmed the following code passes global this:
- toolkit/components/extensions/ExtensionStorageSyncKinto.jsm
- toolkit/components/extensions/Schemas.jsm
- toolkit/components/telemetry/app/TelemetryEnvironment.jsm
- toolkit/components/telemetry/pings/TelemetrySession.jsm
So, moving this to Toolkit product for now.
Product: Firefox → Toolkit
| Assignee | ||
Comment 2•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
Depends on D144783
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/f96cbf5d0c1b
Part 1: Pass an empty object instead of global this to Cu.cloneInto in toolkit/components/extensions/. r=mixedpuppy
https://hg.mozilla.org/integration/autoland/rev/df6966a0f41d
Part 2: Pass an empty object instead of global this to Cu.cloneInto in toolkit/components/telemetry/. r=chutten
Comment 5•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f96cbf5d0c1b
https://hg.mozilla.org/mozilla-central/rev/df6966a0f41d
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox102:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•