diff --git a/common/content/finder.js b/common/content/finder.js index 0153c52d..1c72bbe8 100644 --- a/common/content/finder.js +++ b/common/content/finder.js @@ -577,7 +577,10 @@ const RangeFind = Class("RangeFind", { }, purgeListeners: function () { for (let range in array.iterValues(this.ranges)) - range.window.removeEventListener("unload", this.closure.onUnload, true); + try { + range.window.removeEventListener("unload", this.closure.onUnload, true); + } + catch (e if e.result === Cr.NS_ERROR_FAILURE) {} }, onUnload: function (event) { this.purgeListeners();