From 3a7fafb8ff097751f796e12adf0d697d8d54b00b Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 3 Oct 2014 02:00:41 +1000 Subject: [PATCH] Open the cache as readonly when retrieving a page size for :pageinfo. --- common/modules/buffer.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm index 69d26c7f..43e152b3 100644 --- a/common/modules/buffer.jsm +++ b/common/modules/buffer.jsm @@ -2667,7 +2667,7 @@ Buffer.addPageInfoSection("g", "General Info", function (verbose) { let pageSize = []; // [0] bytes; [1] kbytes storage.asyncOpenURI(util.createURI(doc.documentURI), "", - Ci.nsICacheStorage.OPEN_NORMALLY, + Ci.nsICacheStorage.OPEN_READONLY, { onCacheEntryCheck: () => Ci.nsICacheEntryOpenCallback.ENTRY_WANTED, onCacheEntryAvailable: entry => {