Closed Bug 1765737 Opened 3 years ago Closed 3 years ago

Stop passing per-JSM global this to Cu.cloneInto

Categories

(Toolkit :: General, task)

task

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.

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
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
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
See Also: → 1769372
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: