diff --git a/suite/browser/navigator.js b/suite/browser/navigator.js index 11f1d7d5c6d..f38fa83e1dd 100644 --- a/suite/browser/navigator.js +++ b/suite/browser/navigator.js @@ -414,8 +414,14 @@ function Startup() remoteService.addBrowserInstance(window); } } + + // called when we go into full screen, even if it is + // initiated by a web page script + addEventListener("fullscreen", onFullScreen, false); + // now load bookmarks after a delay setTimeout(LoadBookmarksCallback, 0); + } function LoadBookmarksCallback() @@ -1543,3 +1549,14 @@ function FillInPTTooltip(tipElement) return true; // show tooltip } + +function BrowserFullScreen() +{ + window.fullScreen = !window.fullScreen; +} + +function onFullScreen() +{ + FullScreen.toggle(); +} + diff --git a/suite/browser/navigator.xul b/suite/browser/navigator.xul index f1eed6eeccd..080eb84b37d 100644 --- a/suite/browser/navigator.xul +++ b/suite/browser/navigator.xul @@ -60,6 +60,7 @@ Contributor(s): ______________________________________. -->