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

This commit is contained in:
caillon%returnzero.com 2002-04-20 14:49:41 +00:00
Родитель 5bdc053b13
Коммит 5b3c915a8e
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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)