Closed Bug 1591892 Opened 5 years ago Closed 5 years ago

Implement self.crossOriginIsolated

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: annevk, Assigned: ytausky)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

In order to make it easier for developers to figure out if postMessage() will throw, we should expose that information through self.crossOriginIsolated, as defined by https://github.com/whatwg/html/pull/4734.

I'll work on adding some tests.

I think we should have this when COOP and COEP are enabled and it should only return true if dom.postMessage.sharedArrayBuffer.withCOOP_COEP is also enabled and the COOP and COEP headers are set appropriately.

Assignee: nobody → ytausky
Blocks: 1594748
Pushed by ytausky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8a556d81b030
Expose {window, self}.crossOriginIsolated r=bzbarsky
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: