diff --git a/mozilla/browser/components/prefwindow/content/pref-navigator.xul b/mozilla/browser/components/prefwindow/content/pref-navigator.xul index 3c4ffbd1292..fa068cfb41b 100644 --- a/mozilla/browser/components/prefwindow/content/pref-navigator.xul +++ b/mozilla/browser/components/prefwindow/content/pref-navigator.xul @@ -21,7 +21,14 @@ - + +%brandDTD; +#endif + +%prefNavigatorDTD; +]> child should be activated. - // Default is child 0 (with button enabled). - var deckState = 0; // Start by checking http/https/ftp and html/xhtml/xml. var prefs = parent.winHooks.prefs; if (prefs.isHandlingHTTP && @@ -76,9 +75,7 @@ prefs.isHandlingHTML && prefs.isHandlingXHTML && prefs.isHandlingXML) { - // The user *wants* us to be the default, apparently. This means - // that the deck *might* be in one of the other two states (with - // button disabled), depending on whether the registry matches. + // The user *wants* us to be the default, apparently. // We test the registry settings using a scratch copy of the // settings because we don't care about some of them, but we // don't want to mess up the user's choices from the @@ -101,23 +98,7 @@ testSettings.isHandlingBMP = false; testSettings.isHandlingICO = false; testSettings.isHandlingXUL = false; - // Now test whether the registry matches that. - if ( testSettings.registryMatches ) { - // Disable the button. The only remaining question - // is what text appears alongside it. That will - // vary depending on whether the user has pressed - // the "Set As Default" button already. - if ( parent.winHooks.makeDefaultPending ) { - deckState = 2; - } else { - deckState = 1; - } - } } - - // Now, switch the deck to the appropriate state. - document.getElementById("defaultBrowserDeck").selectedIndex = deckState; - // Return true to tell caller to process the standard pref fields. return true; } @@ -141,14 +122,7 @@ // Apply the settings. parent.winHooks.winhooks.settings = parent.winHooks.prefs; } ); - - // Flip the deck to the "make-default pending" state. - document.getElementById("defaultBrowserDeck").selectedIndex = 2; - - // Remember this state when next displayed. - parent.winHooks.makeDefaultPending = true; } - } #endif ]]> @@ -180,45 +154,12 @@ #ifdef XP_WIN - + - - - - &makeDefaultText; - - -