Commit 8259a69
authored
Use only the incumbent global in postMessage
Previously one of the origin checks was performed with the entry
settings object, while the origin and source attributes of the resulting
MessageEvent were derived from the incumbent settings object. At least
WebKit and Blink appear to use the same global for both, and it makes
sense to align the checks on the same global.
The difference is only observable in test cases that fiddle with
document.domain, as entry and incumbent are always same origin-domain
(but, in document.domain cases, not always same origin).
Fixes #1542. Helps #1431 but hurts #1430.1 parent 43c5786 commit 8259a69
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94262 | 94262 | | |
94263 | 94263 | | |
94264 | 94264 | | |
94265 | | - | |
94266 | | - | |
94267 | 94265 | | |
| 94266 | + | |
| 94267 | + | |
| 94268 | + | |
| 94269 | + | |
94268 | 94270 | | |
94269 | 94271 | | |
94270 | 94272 | | |
| |||
94283 | 94285 | | |
94284 | 94286 | | |
94285 | 94287 | | |
94286 | | - | |
| 94288 | + | |
94287 | 94289 | | |
94288 | 94290 | | |
94289 | 94291 | | |
| |||
0 commit comments