whatwg / fullscreen

Fullscreen API Standard
https://fullscreen.spec.whatwg.org/
Other
105 stars 43 forks source link

Fullscreen request on invisible document should be denied #58

Open upsuper opened 8 years ago

upsuper commented 8 years ago

I suppose that exposes security risks that attacker can open a background window and put it into fullscreen without having user notice it. And then when user switches window, it may start spoofing.

foolip commented 8 years ago

Do you mean something like this?

document.onclick = function() {
  var win = window.open();
  win.document.body.requestFullscreen();
}