toString on remote WindowProxy should be "[object Window]" not "[object Object]"
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
Fission Milestone | M3 |
People
(Reporter: nika, Unassigned)
References
(Blocks 1 open bug)
Details
Comment 1•6 years ago
|
||
Why? CrossOriginPropertyFallback returns undefined for @@toStringTag (see https://html.spec.whatwg.org/multipage/browsers.html#crossoriginpropertyfallback-(-p-)).
Reporter | ||
Comment 2•6 years ago
|
||
It seems like our implementation doesn't follow that behaviour. For cross-origin windows in Gecko, we report "[object Window]".
e.g: data:text/html,<iframe id=i src=http://example.com></iframe><script>document.body.innerHTML += i.contentWindow;</script>
On both Firefox and Chromium this prints out [object Window]
not [object Object]
like it would according to the spec.
ni? :annevk for clarification on this oddity.
Comment 3•6 years ago
|
||
That's not a proxy for a cross-origin object. You need to wait for onload. (You're looking at about:blank.)
Comment 4•6 years ago
|
||
Testing shows that we are doing the right thing (and so do Chrome and Safari TP says annevk).
Description
•