Index: lib/contentFiltering.js |
=================================================================== |
--- a/lib/contentFiltering.js |
+++ b/lib/contentFiltering.js |
@@ -188,16 +188,21 @@ |
}) |
.catch(error => |
{ |
// Sometimes a frame is added and removed very quickly, in such cases we |
// simply ignore the error. |
if (error.message == "The frame was removed.") |
return; |
+ // Sometimes the frame in question is just not found. We don't know why |
+ // this is exactly, but we simply ignore the error. |
+ if (/^No frame with id \d+ in tab \d+\.$/.test(error.message)) |
+ return; |
+ |
throw error; |
}); |
} |
catch (error) |
{ |
// See the comment in the catch block associated with the call to |
// tabs.insertCSS for why we catch and ignore any errors here. |
} |