Closed Bug 1739294 Opened 3 years ago Closed 11 months ago

BroadcastChannel: Ignore messages from detached iframes / closing workers

Categories

(Core :: DOM: postMessage, enhancement)

Firefox 96
enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: awillia, Assigned: edenchuang)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Steps to reproduce:

Pending an update to the spec [1], calling postMessage on BroadcastChannel objects associated with detached iframes or closing workers should have no effect.

See new tests in [2] for more details.

Related: https://bugzilla.mozilla.org/show_bug.cgi?id=1738161

[1] https://github.com/whatwg/html/issues/7219
[2] https://github.com/web-platform-tests/wpt/pull/31290

Actual results:

BroadcastChannel messages get delivered from detached iframe / closing worker contexts in certain cases.

Expected results:

BroadcastChannel messages get ignored went sent from detached iframe / closing worker contexts.

This would be fixed with bug 1800659.

Assignee: nobody → echuang
Depends on: 1800659

(In reply to Eden Chuang[:edenchuang] from comment #1)

This would be fixed with bug 1800659.

Landed, marking fixed.

Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.