Closed Bug 1696756 Opened 3 years ago Closed 3 years ago

Add a function to get the Window associated with a Sandbox

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: evilpie, Assigned: evilpie)

References

Details

Attachments

(2 files)

A Sandbox can wrap a DOMWindow via its sandboxPrototype. Sometimes it's useful to get the DOMWindow of a Sandbox for error reporting etc.

Blocks: 1536094
Assignee: nobody → evilpies

I noticed this while working on my import patch. When the import fails the promise is rejected. Currently
that rejection just ends up somewhere in the Browser Console.

Pushed by evilpies@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ed488c762faa
Add SandboxWindowOrNull to get Window wrapped by Sandbox. r=smaug
https://hg.mozilla.org/integration/autoland/rev/3c9cd0eadb39
Log promise rejections from sandboxed code to the right window. r=smaug
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Blocks: 1410932
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: