Bug 1053269 - Null-check for ownerDoc OpenDatabaseHelper.cpp, r=ehsan
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 14 Aug 2014 07:36:13 +0200
changeset 221126 d6daf663bfb22b2ddcb3e289db8d891e920503b1
parent 221032 8f922378fab092da3e7859a98fdb35fbc6d447f3
child 221127 b7d4ffccf5bf2178fd0493e05187a82393b2a44b
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1053269
milestone34.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 1053269 - Null-check for ownerDoc OpenDatabaseHelper.cpp, r=ehsan
dom/indexedDB/OpenDatabaseHelper.cpp
--- a/dom/indexedDB/OpenDatabaseHelper.cpp
+++ b/dom/indexedDB/OpenDatabaseHelper.cpp
@@ -1702,17 +1702,19 @@ public:
         // fully in the bfcache.  Instead we'll abort everything for the window
         // and mark it as not-bfcacheable.
         QuotaManager* quotaManager = QuotaManager::Get();
         NS_ASSERTION(quotaManager, "Huh?");
         quotaManager->AbortCloseStoragesForWindow(owner);
 
         NS_ASSERTION(database->IsClosed(),
                    "AbortCloseStoragesForWindow should have closed database");
-        ownerDoc->DisallowBFCaching();
+        if (ownerDoc) {
+          ownerDoc->DisallowBFCaching();
+        }
         continue;
       }
 
       // Otherwise fire a versionchange event.
       nsRefPtr<Event> event = 
         IDBVersionChangeEvent::Create(database, mOldVersion, mNewVersion);
       NS_ENSURE_TRUE(event, NS_ERROR_FAILURE);