foolip
2017/08/15 09:44:22
I think this can be simplified. Per http://softwar
I think this can be simplified. Per
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5303 it looks like
the iframe's name correctly propagates to window.name, so you can use that. Even
without it, it should be possible to use e.source, just a bit less convenient.
In other words, why can't this script immediately post back, without even
waiting for the page to finish loading?
iclelland
2017/08/16 13:31:55
That's interesting... If the frame name is availab
On 2017/08/15 09:44:22, foolip wrote:
> I think this can be simplified. Per
> http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5303 it looks like
> the iframe's name correctly propagates to window.name, so you can use that.
Even
> without it, it should be possible to use e.source, just a bit less convenient.
>
> In other words, why can't this script immediately post back, without even
> waiting for the page to finish loading?
That's interesting... If the frame name is available ambiently, then we
definitely can just post back, and don't need to trigger. The trigger was just
so that we could pass a token to the child frame to allow the results to be
distinguished properly on the return message.
In the other test, which actually enables fullscreen, I can remove the need to
pass frame.name back and forth, but the trigger is still necessary in order to
satisfy the gesture requirement.
7 parent.postMessage({"report": {
8 "api": "fullscreen",
9 "enabled": document.webkitFullscreenEnabled,
foolip
2017/08/15 09:44:22
Use document.fullscreenEnabled in wpt.
Issue 2898503002: Reenable feature policy control over fullscreen
(Closed)
Created 3 years, 7 months ago by iclelland
Modified 3 years, 4 months ago
Reviewers: foolip, loonybear, alexmos
Base URL:
Comments: 49