summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/localstorage
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-08 20:42:10 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-13 11:37:45 -0400
commit1d0af8b59102331cba100529e1697f91faf0c86b (patch)
tree3fa887fe66e4939ff8a3fc0d48cff84e8e4b14c4 /dom/tests/mochitest/localstorage
parentc7796280a9b5600fb15a4c170ca3d3f4d4d9e535 (diff)
downloadUXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar
UXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar.gz
UXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar.lz
UXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar.xz
UXP-1d0af8b59102331cba100529e1697f91faf0c86b.zip
Issue #991 Part 5: DOM and layout
Diffstat (limited to 'dom/tests/mochitest/localstorage')
-rw-r--r--dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html b/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html
index 24d3e4ba3..4dcc361c1 100644
--- a/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html
+++ b/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html
@@ -14,13 +14,7 @@ const Ci = Components.interfaces;
const CONTENT_PAGE = "http://mochi.test:8888/chrome/dom/tests/mochitest/localstorage/page_blank.html";
const slavePath = "/chrome/dom/tests/mochitest/localstorage/";
var currentTest = 1;
-var quota;
-
-try {
- quota = Services.prefs.getIntPref("dom.storage.default_quota");
-} catch (ex) {
- quota = 5 * 1024;
-}
+var quota = Services.prefs.getIntPref("dom.storage.default_quota", 5 * 1024);
Services.prefs.setIntPref("browser.startup.page", 0);
Services.prefs.setIntPref("dom.storage.default_quota", 1);