From 5b3c915a8e37725dc9002908f1fe0de252b299e9 Mon Sep 17 00:00:00 2001 From: "caillon%returnzero.com" Date: Sat, 20 Apr 2002 14:49:41 +0000 Subject: [PATCH] Page info shouldn't open cache items in blocking mode. Fixes Bug 124566, 'View Page Info whilst this page loading hangs browser.' Patch by db48x@yahoo.com, r=caillon, sr=darin --- xpfe/browser/resources/content/pageInfo.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xpfe/browser/resources/content/pageInfo.js b/xpfe/browser/resources/content/pageInfo.js index a74bda4e371..405810e6fa5 100644 --- a/xpfe/browser/resources/content/pageInfo.js +++ b/xpfe/browser/resources/content/pageInfo.js @@ -202,7 +202,7 @@ function makeGeneralTab() try { - var cacheEntryDescriptor = httpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, true); + var cacheEntryDescriptor = httpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); if(cacheEntryDescriptor) { switch(cacheEntryDescriptor.deviceID) @@ -229,7 +229,7 @@ function makeGeneralTab() { try { - cacheEntryDescriptor = ftpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, true); + cacheEntryDescriptor = ftpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); if (cacheEntryDescriptor) { switch(cacheEntryDescriptor.deviceID) @@ -692,7 +692,7 @@ function makePreview(item) try { - var cacheEntryDescriptor = httpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, true); // open for READ, in blocking mode + var cacheEntryDescriptor = httpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); // open for READ, in non-blocking mode if (cacheEntryDescriptor) { switch(cacheEntryDescriptor.deviceID) @@ -719,7 +719,7 @@ function makePreview(item) { try { - cacheEntryDescriptor = ftpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, true); // open for READ, in blocking mode + cacheEntryDescriptor = ftpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); // open for READ, in non-blocking mode if (cacheEntryDescriptor) { switch(cacheEntryDescriptor.deviceID)