Chromium Code Reviews| Index: remoting/webapp/fullscreen_v2.js |
| diff --git a/remoting/webapp/fullscreen_v2.js b/remoting/webapp/fullscreen_v2.js |
| index 3aaaab16f3006b4543de81343e387385df7bea85..008511e7539e74a2381d7374390b781075cfa3ac 100644 |
| --- a/remoting/webapp/fullscreen_v2.js |
| +++ b/remoting/webapp/fullscreen_v2.js |
| @@ -112,6 +112,14 @@ remoting.FullscreenAppsV2.prototype.onMaximized_ = function() { |
| }; |
| remoting.FullscreenAppsV2.prototype.onRestored_ = function() { |
| + // TODO(jamiewalch): ChromeOS generates a spurious onRestore event if |
| + // fullscreen() is called from an onMaximized handler (crbug.com/394819), |
| + // so test the full-screen status to make sure that this callback is |
|
Wez
2014/07/17 18:49:42
nit: Clarify what you mean by this; i.e. what you
Jamie
2014/07/17 21:36:44
Done.
|
| + // genuine. |
| + if (this.isActive()) { |
| + return; |
| + } |
| + |
| document.body.classList.remove('fullscreen'); |
| if (this.hookingWindowEvents_) { |
| this.activate(false); |