diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-08 20:36:18 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-13 11:37:45 -0400 |
commit | c7796280a9b5600fb15a4c170ca3d3f4d4d9e535 (patch) | |
tree | 9e1fbdd8600e3ed4d7747dbdd8cb11bdb431d287 /netwerk/test/unit/test_bug650995.js | |
parent | 609a7215e6ef705fd098fd4adb4f922795ff1119 (diff) | |
download | UXP-c7796280a9b5600fb15a4c170ca3d3f4d4d9e535.tar UXP-c7796280a9b5600fb15a4c170ca3d3f4d4d9e535.tar.gz UXP-c7796280a9b5600fb15a4c170ca3d3f4d4d9e535.tar.lz UXP-c7796280a9b5600fb15a4c170ca3d3f4d4d9e535.tar.xz UXP-c7796280a9b5600fb15a4c170ca3d3f4d4d9e535.zip |
Issue #991 Part 4: Network and URILoader
Diffstat (limited to 'netwerk/test/unit/test_bug650995.js')
-rw-r--r-- | netwerk/test/unit/test_bug650995.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/netwerk/test/unit/test_bug650995.js b/netwerk/test/unit/test_bug650995.js index 3c1ea8d67..bf2e9fa7d 100644 --- a/netwerk/test/unit/test_bug650995.js +++ b/netwerk/test/unit/test_bug650995.js @@ -78,24 +78,14 @@ function InitializeCacheDevices(memDevice, diskDevice) { this.start = function() { prefService.setBoolPref("browser.cache.memory.enable", memDevice); if (memDevice) { - try { - cap = prefService.getIntPref("browser.cache.memory.capacity"); - } - catch(ex) { - cap = 0; - } + cap = prefService.getIntPref("browser.cache.memory.capacity", 0); if (cap == 0) { prefService.setIntPref("browser.cache.memory.capacity", 1024); } } prefService.setBoolPref("browser.cache.disk.enable", diskDevice); if (diskDevice) { - try { - cap = prefService.getIntPref("browser.cache.disk.capacity"); - } - catch(ex) { - cap = 0; - } + cap = prefService.getIntPref("browser.cache.disk.capacity", 0); if (cap == 0) { prefService.setIntPref("browser.cache.disk.capacity", 1024); } |