0

I have two pages, one is "index.html". It is used by a chrome packaged app and it has a webview inside. The other one is a fullscreen.html and it has a button with function: document.documentElement.webkitRequestFullScreen().

So I point webview to fullscreen.html. But when I wanted to click button to full screen both webview and app, nothing happened.

rsanchez
  • 14,467
  • 1
  • 35
  • 46

1 Answers1

0

It sounds from your description that the request for full screen is being executed in the webview's DOM, not the top window's DOM. If so, what you describe sounds normal to me. What is in effect a child window can't be fullscreen.

Marc Rochkind
  • 3,678
  • 3
  • 30
  • 38
  • So If want this feature, maybe I need send message between two windows? – user3770400 Aug 22 '14 at 04:56
  • That might work. Or, if the JavaScript running in the webview's context can get the window object of the top-level window, it can call a JavaScript function in the context of the main window directly, or even access the main window's document object and reference its methods and properties. – Marc Rochkind Aug 22 '14 at 14:55