From 8e1dc9e0eed868eb6bf7924dd8fa33f7f5f66a57 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 19 Aug 2018 01:30:14 +0200 Subject: Fixed regression: refresh loop on page using requests of type="object" to cache images, stylesheets and other types. --- src/bg/RequestGuard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bg') diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index 38801de..750e66f 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -481,7 +481,7 @@ var RequestGuard = (() => { pending.headersProcessed ? "has been overridden on": "could not process", request); - if (tabId !== -1) { + if (tabId !== -1 && type !== "object") { debug("[WARNING] Reloading %s frame %s of tab %s.", url, frameId, tabId); browser.tabs.executeScript(tabId, { runAt: "document_start", -- cgit v1.2.3