Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1584986 - P1 - Remove the early return for listInitializedOrigins…
Browse files Browse the repository at this point in the history
…; r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D47740
  • Loading branch information
chihweitung committed Oct 1, 2019
1 parent 87f55fc commit e6bcdc1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions dom/quota/ActorsParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9795,9 +9795,6 @@ nsresult ListInitializedOriginsOp::DoDirectoryWork(
AUTO_PROFILER_LABEL("ListInitializedOriginsOp::DoDirectoryWork", OTHER);

nsresult rv;
if (!aQuotaManager->IsTemporaryStorageInitialized()) {
return NS_OK;
}

for (const PersistenceType type : kAllPersistenceTypes) {
rv = TraverseRepository(aQuotaManager, type);
Expand Down
14 changes: 0 additions & 14 deletions dom/quota/test/unit/test_listInitializedOrigins.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,6 @@ async function testSteps() {

await CreateTestEnvironment(origins);

info("Getting origins before initializing the storage");

await new Promise(resolve => {
listInitializedOrigins(request => {
verifyResult(request.result, []);
resolve();
});
});

info("Verifying result");

let request = initTemporaryStorage();
request = await requestFinished(request);

info("Getting origins after initializing the storage");

await new Promise(resolve => {
Expand Down

0 comments on commit e6bcdc1

Please sign in to comment.