Bug 1380343 - Enable IndexedDB on about:newtab with activity-stream r=ursula
authork88hudson <khudson@mozilla.com>
Tue, 18 Jul 2017 12:28:11 -0400
changeset 418228 e2bc444e784e09b985057735785c810032f1b8d6
parent 418227 1bc1c884659c310847db6e101a904b5d99e1b93b
child 418229 96d864edaea3eebe70769ed4f75b0b1d45185542
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersursula
bugs1380343
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1380343 - Enable IndexedDB on about:newtab with activity-stream r=ursula MozReview-Commit-ID: Jnh9nSpY1kI
browser/components/about/AboutRedirector.cpp
--- a/browser/components/about/AboutRedirector.cpp
+++ b/browser/components/about/AboutRedirector.cpp
@@ -217,17 +217,19 @@ AboutRedirector::GetURIFlags(nsIURI *aUR
   for (auto & redir : kRedirMap) {
     if (name.Equals(redir.id)) {
 
       // Once ActivityStream is fully rolled out and we've removed Tiles,
       // this special case can go away and the flag can just become part
       // of the normal about:newtab entry in kRedirMap.
       if (name.EqualsLiteral("newtab")) {
         if (sActivityStreamEnabled) {
-          *result = redir.flags | nsIAboutModule::URI_MUST_LOAD_IN_CHILD;
+          *result = redir.flags |
+            nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
+            nsIAboutModule::ENABLE_INDEXED_DB;
           return NS_OK;
         }
       }
 
       *result = redir.flags;
       return NS_OK;
     }
   }