mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 19:45:46 +01:00
Open the cache as readonly when retrieving a page size for :pageinfo.
This commit is contained in:
@@ -2667,7 +2667,7 @@ Buffer.addPageInfoSection("g", "General Info", function (verbose) {
|
|||||||
let pageSize = []; // [0] bytes; [1] kbytes
|
let pageSize = []; // [0] bytes; [1] kbytes
|
||||||
|
|
||||||
storage.asyncOpenURI(util.createURI(doc.documentURI), "",
|
storage.asyncOpenURI(util.createURI(doc.documentURI), "",
|
||||||
Ci.nsICacheStorage.OPEN_NORMALLY,
|
Ci.nsICacheStorage.OPEN_READONLY,
|
||||||
{
|
{
|
||||||
onCacheEntryCheck: () => Ci.nsICacheEntryOpenCallback.ENTRY_WANTED,
|
onCacheEntryCheck: () => Ci.nsICacheEntryOpenCallback.ENTRY_WANTED,
|
||||||
onCacheEntryAvailable: entry => {
|
onCacheEntryAvailable: entry => {
|
||||||
|
|||||||
Reference in New Issue
Block a user