diff --git a/mozilla/caps/src/nsScriptSecurityManager.cpp b/mozilla/caps/src/nsScriptSecurityManager.cpp index d052558e9c1..318701f4969 100644 --- a/mozilla/caps/src/nsScriptSecurityManager.cpp +++ b/mozilla/caps/src/nsScriptSecurityManager.cpp @@ -1265,7 +1265,7 @@ nsScriptSecurityManager::CheckLoadURI(nsIURI *aSourceURI, nsIURI *aTargetURI, { "javascript", AllowProtocol }, { "ftp", AllowProtocol }, { "about safe", AllowProtocol }, - { "about", DenyProtocol }, + { "about", ChromeProtocol }, { "mailto", AllowProtocol }, { "aim", AllowProtocol }, { "data", AllowProtocol }, diff --git a/mozilla/netwerk/build/nsNetModule.cpp b/mozilla/netwerk/build/nsNetModule.cpp index c118d414241..9691fe4e493 100644 --- a/mozilla/netwerk/build/nsNetModule.cpp +++ b/mozilla/netwerk/build/nsNetModule.cpp @@ -956,6 +956,11 @@ static const nsModuleComponentInfo gNetModuleInfo[] = { NS_ABOUT_MODULE_CONTRACTID_PREFIX "buildconfig", nsAboutRedirector::Create }, + { "about:about", + NS_ABOUT_REDIRECTOR_MODULE_CID, + NS_ABOUT_MODULE_CONTRACTID_PREFIX "about", + nsAboutRedirector::Create + }, { "about:cache", NS_ABOUT_CACHE_MODULE_CID, diff --git a/mozilla/netwerk/protocol/about/src/nsAboutRedirector.cpp b/mozilla/netwerk/protocol/about/src/nsAboutRedirector.cpp index 186030142f0..e1040ca78db 100644 --- a/mozilla/netwerk/protocol/about/src/nsAboutRedirector.cpp +++ b/mozilla/netwerk/protocol/about/src/nsAboutRedirector.cpp @@ -57,7 +57,6 @@ struct RedirEntry { PRBool dropChromePrivs; // if PR_TRUE, the page will not have chrome privileges }; -// if you add something here, make sure you update the total /* Entries with dropChromePrivs == PR_FALSE will run with chrome privileges. This is potentially dangerous. Please use PR_TRUE @@ -72,6 +71,7 @@ static RedirEntry kRedirMap[] = { { "config", "chrome://global/content/config.xul", PR_FALSE }, { "logo", "chrome://global/content/logo.gif", PR_TRUE }, { "buildconfig", "chrome://global/content/buildconfig.html", PR_TRUE }, + { "about", "chrome://global/content/aboutAbout.html", PR_FALSE } }; static const int kRedirTotal = sizeof(kRedirMap)/sizeof(*kRedirMap); diff --git a/mozilla/xpfe/global/jar.mn b/mozilla/xpfe/global/jar.mn index 69e3a63ae5d..3d352b656d6 100644 --- a/mozilla/xpfe/global/jar.mn +++ b/mozilla/xpfe/global/jar.mn @@ -11,6 +11,7 @@ toolkit.jar: content/global/commonDialog.js (resources/content/commonDialog.js) content/global/strres.js (resources/content/strres.js) content/global/logo.gif (resources/content/logo.gif) + content/global/aboutAbout.html (resources/content/aboutAbout.html) content/global/about.xul (resources/content/about.xul) content/global/about.js (resources/content/about.js) content/global/config.xul (resources/content/config.xul) diff --git a/mozilla/xpfe/global/resources/content/aboutAbout.html b/mozilla/xpfe/global/resources/content/aboutAbout.html new file mode 100644 index 00000000000..400f1e3c14d --- /dev/null +++ b/mozilla/xpfe/global/resources/content/aboutAbout.html @@ -0,0 +1,126 @@ + + + + + +
+Note: not all of the following URIs may be useful as listed. For instance, some may require query strings.
+