diff --git a/xpfe/browser/resources/content/fastnav.js b/xpfe/browser/resources/content/fastnav.js
index 039408e6fad6..65426dbc51cf 100644
--- a/xpfe/browser/resources/content/fastnav.js
+++ b/xpfe/browser/resources/content/fastnav.js
@@ -366,6 +366,10 @@ function Startup()
// Perform default browser checking.
checkForDefaultBrowser();
}
+
+ if (document.getElementById("main-window").getAttribute("fullScreen") == "true") {
+ BrowserFullScreenEnter();
+ }
}
function Shutdown()
@@ -942,6 +946,52 @@ function OpenAddressbook()
open("chrome://messenger/content/addressbook/addressbook.xul", "_blank", "chrome,menubar,toolbar,resizable");
}
+var gFullScreen = false;
+
+function BrowserFullScreenToggle()
+{
+ // toggle the attributes as indicated in the fullScreenElementChanges table
+ var idx, attribute, value;
+ var element, currentValue
+ var fullScreenElementChanges = document.getElementById("fullScreenElementChanges");
+ var next = fullScreenElementChanges.firstChild;
+ while (next) {
+ idx = next.getAttribute("idx");
+ attribute = next.getAttribute("attribute");
+ value = next.getAttribute("value");
+
+ element = document.getElementById(idx);
+ currentValue = element.getAttribute(attribute);
+
+ if (value) {
+ element.setAttribute(attribute, value);
+ } else {
+ element.removeAttribute(attribute);
+ }
+ next.setAttribute("value", currentValue);
+
+ next = next.nextSibling;
+ }
+
+ // toggle and save the fullScreen indicator
+ gFullScreen = !gFullScreen;
+ document.getElementById("main-window").setAttribute("fullScreen", gFullScreen?"true":"false");
+}
+
+function BrowserFullScreenEnter()
+{
+ if (!gFullScreen) {
+ BrowserFullScreenToggle();
+ }
+}
+
+function BrowserFullScreenExit()
+{
+ if (gFullScreen) {
+ BrowserFullScreenToggle();
+ }
+}
+
function BrowserViewSource()
{
var focusedWindow = document.commandDispatcher.focusedWindow;
diff --git a/xpfe/browser/resources/content/linkToolbarOverlay.xul b/xpfe/browser/resources/content/linkToolbarOverlay.xul
index c5a4d790cd99..7a55d3be3cf6 100644
--- a/xpfe/browser/resources/content/linkToolbarOverlay.xul
+++ b/xpfe/browser/resources/content/linkToolbarOverlay.xul
@@ -79,6 +79,10 @@
+
+
+
+
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
windowtype="navigator:browser"
width="640" height="480"
- screenX="10" screenY="10"
- persist="screenX screenY width height sizemode">
+ screenX="10" screenY="10" fullScreen="false"
+ persist="screenX screenY width height sizemode fullScreen">
@@ -165,6 +165,13 @@ Contributor(s): ______________________________________. -->
oncommand="BrowserStop();" observes="canStop"
tooltiptext="&stopButton.tooltip;"/>
+
+
@@ -380,4 +387,16 @@ Contributor(s): ______________________________________. -->
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xpfe/browser/resources/content/navigatorOverlay.xul b/xpfe/browser/resources/content/navigatorOverlay.xul
index 03c346d325b0..447d7e577706 100644
--- a/xpfe/browser/resources/content/navigatorOverlay.xul
+++ b/xpfe/browser/resources/content/navigatorOverlay.xul
@@ -75,6 +75,7 @@
+
@@ -132,6 +133,7 @@
+
@@ -241,6 +243,7 @@
+
diff --git a/xpfe/browser/resources/locale/en-US/navigator.dtd b/xpfe/browser/resources/locale/en-US/navigator.dtd
index 7441cecd15c9..403c66418e99 100644
--- a/xpfe/browser/resources/locale/en-US/navigator.dtd
+++ b/xpfe/browser/resources/locale/en-US/navigator.dtd
@@ -59,6 +59,8 @@
+
+
@@ -283,6 +285,8 @@
+
+