1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 05:54:12 +01:00

Open the cache as readonly when retrieving a page size for :pageinfo.

This commit is contained in:
Doug Kearns
2014-10-03 02:00:41 +10:00
parent 53c7cc118d
commit 3a7fafb8ff

View File

@@ -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 => {