From ac9a1eb2a65c07edc01f8fa5ab1ea2ada0e7ce18 Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Tue, 16 Dec 2014 16:37:30 -0800 Subject: [PATCH] Bug 795968 - Create about:reader page. r=jaws --HG-- extra : rebase_source : 5989b4e9434368aa5dac1eca03b331c2e845048a --- browser/components/about/AboutRedirector.cpp | 4 ++++ browser/components/build/nsModule.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/browser/components/about/AboutRedirector.cpp b/browser/components/about/AboutRedirector.cpp index 8cf5f2f516d3..04065cc4fc61 100644 --- a/browser/components/about/AboutRedirector.cpp +++ b/browser/components/about/AboutRedirector.cpp @@ -115,6 +115,10 @@ static RedirEntry kRedirMap[] = { nsIAboutModule::ENABLE_INDEXED_DB, // Shares an IndexedDB origin with about:loopconversation. "loopconversation" }, + { "reader", "chrome://global/content/reader/aboutReader.html", + nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | + nsIAboutModule::ALLOW_SCRIPT | + nsIAboutModule::HIDE_FROM_ABOUTABOUT }, }; static const int kRedirTotal = ArrayLength(kRedirMap); diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/nsModule.cpp index b8b994a30ec7..553dfcf2b131 100644 --- a/browser/components/build/nsModule.cpp +++ b/browser/components/build/nsModule.cpp @@ -115,6 +115,7 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = { { NS_ABOUT_MODULE_CONTRACTID_PREFIX "customizing", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "looppanel", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "loopconversation", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, + { NS_ABOUT_MODULE_CONTRACTID_PREFIX "reader", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, #if defined(XP_WIN) { NS_IEHISTORYENUMERATOR_CONTRACTID, &kNS_WINIEHISTORYENUMERATOR_CID }, #elif defined(XP_MACOSX)