postMessage: event.source is not equal to source window

UNCONFIRMED
Assigned to

Status

()

P3
normal
UNCONFIRMED
a year ago
a month ago

People

(Reporter: jenan, Assigned: justindarc)

Tracking

unspecified
Other
iOS

Firefox Tracking Flags

(fxios13.0)

Details

Attachments

(1 attachment)

(Reporter)

Description

a year ago
Created attachment 8868845 [details]
minimal_repro.html

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

Steps to reproduce:

1. open a new window with `var innerWindow = window.open(url, '_blank');`
2. in the inner window, use `window.opener.postMessage('foo', '*');`
3. in the root window, read the event and compare `innerWindow` to `event.source`

Minimal reproduction: https://jenanwise.github.io/firefox-ios-postmessage-event-source/

(source: https://github.com/jenanwise/firefox-ios-postmessage-event-source/)


Actual results:

innerWindow != event.source

Chrome iOS and basic Mobile Safari do not show the same behavior. Neither do Chrome, Firefox, or Safari desktop.


Expected results:

innerWindow === event.source

Updated

a month ago
tracking-fxios: --- → ?
(Assignee)

Updated

a month ago
tracking-fxios: ? → 13.0
Priority: -- → P3
(Assignee)

Updated

a month ago
Assignee: nobody → jdarcangelo
You need to log in before you can comment on or make changes to this bug.