diff --git a/mozilla/suite/common/pref/nsPrefWindow.js b/mozilla/suite/common/pref/nsPrefWindow.js
index ff243dbc8fb..fa342d20286 100644
--- a/mozilla/suite/common/pref/nsPrefWindow.js
+++ b/mozilla/suite/common/pref/nsPrefWindow.js
@@ -86,17 +86,16 @@ nsPrefWindow.prototype =
onOK:
function ()
{
- for( var i = 0; i < hPrefWindow.okHandlers.length; i++ )
- {
- hPrefWindow.okHandlers[i]();
- }
-
var tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("tag");
if( tag == "" )
{
tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("src");
}
hPrefWindow.wsm.savePageData( tag );
+ for( var i = 0; i < hPrefWindow.okHandlers.length; i++ )
+ {
+ hPrefWindow.okHandlers[i]();
+ }
hPrefWindow.savePrefs();
},
diff --git a/mozilla/suite/common/pref/pref-navigator.xul b/mozilla/suite/common/pref/pref-navigator.xul
index 2522095d48d..59257f7e311 100644
--- a/mozilla/suite/common/pref/pref-navigator.xul
+++ b/mozilla/suite/common/pref/pref-navigator.xul
@@ -23,6 +23,7 @@
+
@@ -43,16 +44,18 @@
]]>
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/suite/common/pref/pref-winhooks.js b/mozilla/suite/common/pref/pref-winhooks.js
index edad680b177..c2e5df04b39 100644
--- a/mozilla/suite/common/pref/pref-winhooks.js
+++ b/mozilla/suite/common/pref/pref-winhooks.js
@@ -35,23 +35,8 @@ function dumpObject( obj, name ) {
// Top-level windows integration preferences.
if ( !( "winHooks" in parent ) ) {
parent.winHooks = new Object;
- parent.winHooks.settings = [ "isHandlingHTML",
- "isHandlingJPEG",
- "isHandlingGIF",
- "isHandlingPNG",
- "isHandlingMNG",
- "isHandlingBMP",
- "isHandlingICO",
- "isHandlingXML",
- "isHandlingXHTML",
- "isHandlingXUL",
- "isHandlingHTTP",
- "isHandlingHTTPS",
- "isHandlingFTP",
- "isHandlingCHROME",
- "isHandlingGOPHER",
- "showDialog" ];
+ parent.winHooks.settings = null;
parent.winHooks.winhooks = null;
parent.winHooks.prefs = null;
}
@@ -104,14 +89,34 @@ function Startup() {
// Set globals.
parent.winHooks.winhooks = winhooks;
parent.winHooks.prefs = prefs;
- // Register so we get called when pref window Ok is pressed.
- parent.hPrefWindow.registerOKCallbackFunc( onOK );
}
}
catch(e) {
dump( e + "\n" );
}
}
+ if ( !settings ) {
+ // Set state specific to this panel (not shared with the "default browser"
+ // button state from the Navigator panel).
+ settings = parent.winHooks.settings = [ "isHandlingHTML",
+ "isHandlingJPEG",
+ "isHandlingGIF",
+ "isHandlingPNG",
+ "isHandlingMNG",
+ "isHandlingBMP",
+ "isHandlingICO",
+ "isHandlingXML",
+ "isHandlingXHTML",
+ "isHandlingXUL",
+ "isHandlingHTTP",
+ "isHandlingHTTPS",
+ "isHandlingFTP",
+ "isHandlingCHROME",
+ "isHandlingGOPHER",
+ "showDialog" ];
+ // Register so we get called when pref window Ok is pressed.
+ parent.hPrefWindow.registerOKCallbackFunc( onOK );
+ }
// Transfer object settings to the dialog checkboxes.
for( var index in settings ) {
var setting = settings[ index ];
diff --git a/mozilla/suite/common/pref/win/platformPrefOverlay.xul b/mozilla/suite/common/pref/win/platformPrefOverlay.xul
index 187ccecf8fb..c47c233c94f 100644
--- a/mozilla/suite/common/pref/win/platformPrefOverlay.xul
+++ b/mozilla/suite/common/pref/win/platformPrefOverlay.xul
@@ -21,9 +21,15 @@
Contributor(s):
Ben Goodger
+ Bill Law
-->
-
+
+%brandDTD;
+
+%platformPrefOverlayDTD;
+]>
@@ -36,6 +42,172 @@
+
+
+
+
+
+
+
+
+ &makeDefaultText;
+
+
+
+
+
+
+
+ &alreadyDefaultText;
+
+
+
+
+
+
+
+ &defaultPendingText;
+
+
+
+
+
+
+
+
+
+