Closed Bug 1365832 Opened 7 years ago Closed 6 years ago

postMessage: event.source is not equal to source window

Categories

(Firefox for iOS :: Browser, defect, P2)

Other
iOS
defect

Tracking

()

VERIFIED FIXED
Tracking Status
fxios 15.0 ---

People

(Reporter: jenan, Assigned: justindarc)

Details

Attachments

(1 file)

Attached file 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
Priority: -- → P3
Assignee: nobody → jdarcangelo
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: P3 → P2
Landed on master:

https://github.com/mozilla-mobile/firefox-ios/commit/4fd4b66df9d5403268cf60cb63ddc17e04cfee4f
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED

Verifying as fixed on master d6d0585a95b1c9 and Beta v15.b13583.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: