From a449788b93e6b16e27a837f6b2e1fcd8b8bc93dc Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 24 Feb 2020 19:38:01 +0300 Subject: [PATCH] fixup! don't add frames with errors --- popup/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup/popup.js b/popup/popup.js index d200aeb3..d06a5ab4 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -210,8 +210,8 @@ function sortTabFrames(frames) { while (unknown.size !== lastSize) { for (const [frameId, f] of unknown) { if (known.has(f.parentFrameId)) { - known.set(frameId, f); unknown.delete(frameId); + if (!f.errorOccurred) known.set(frameId, f); if (f.url === ABOUT_BLANK) f.url = known.get(f.parentFrameId).url; } }