From c868530a4affc181c2966a09358bdd8b932aebe0 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Tue, 14 Sep 2010 20:29:34 -0400 Subject: [PATCH] about:startup - use nsAboutRedirector instead of the browser fork as it's more appropriate for a toolkit page --- browser/components/about/AboutRedirector.cpp | 2 -- docshell/base/nsAboutRedirector.cpp | 2 ++ docshell/build/nsDocShellModule.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/components/about/AboutRedirector.cpp b/browser/components/about/AboutRedirector.cpp index 319afb004178..0172b341b0cb 100755 --- a/browser/components/about/AboutRedirector.cpp +++ b/browser/components/about/AboutRedirector.cpp @@ -100,8 +100,6 @@ static RedirEntry kRedirMap[] = { { "sync-tabs", "chrome://browser/content/aboutSyncTabs.xul", nsIAboutModule::ALLOW_SCRIPT }, #endif - { "startup", "chrome://toolkit/content/aboutStartup.xhtml", - nsIAboutModule::ALLOW_SCRIPT }, { "home", "chrome://browser/content/aboutHome.xhtml", nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | nsIAboutModule::ALLOW_SCRIPT }, diff --git a/docshell/base/nsAboutRedirector.cpp b/docshell/base/nsAboutRedirector.cpp index 0b35ee6d8014..498751be48bb 100644 --- a/docshell/base/nsAboutRedirector.cpp +++ b/docshell/base/nsAboutRedirector.cpp @@ -91,6 +91,8 @@ static RedirEntry kRedirMap[] = { { "addons", "chrome://mozapps/content/extensions/extensions.xul", nsIAboutModule::ALLOW_SCRIPT }, { "support", "chrome://global/content/aboutSupport.xhtml", + nsIAboutModule::ALLOW_SCRIPT }, + { "startup", "chrome://global/content/aboutStartup.xhtml", nsIAboutModule::ALLOW_SCRIPT } }; static const int kRedirTotal = NS_ARRAY_LENGTH(kRedirMap); diff --git a/docshell/build/nsDocShellModule.cpp b/docshell/build/nsDocShellModule.cpp index 4a4753dab45f..7ed2132659d7 100644 --- a/docshell/build/nsDocShellModule.cpp +++ b/docshell/build/nsDocShellModule.cpp @@ -186,6 +186,7 @@ const mozilla::Module::ContractIDEntry kDocShellContracts[] = { { NS_ABOUT_MODULE_CONTRACTID_PREFIX "memory", &kNS_ABOUT_REDIRECTOR_MODULE_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "addons", &kNS_ABOUT_REDIRECTOR_MODULE_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "support", &kNS_ABOUT_REDIRECTOR_MODULE_CID }, + { NS_ABOUT_MODULE_CONTRACTID_PREFIX "startup", &kNS_ABOUT_REDIRECTOR_MODULE_CID }, { NS_URI_LOADER_CONTRACTID, &kNS_URI_LOADER_CID }, { NS_DOCUMENTLOADER_SERVICE_CONTRACTID, &kNS_DOCUMENTLOADER_SERVICE_CID }, { NS_EXTERNALHELPERAPPSERVICE_CONTRACTID, &kNS_EXTERNALHELPERAPPSERVICE_CID },