1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-11 22:05:47 +01:00

Ignore some errors on failed incrimental search on FF36. Closes issue #96.

This commit is contained in:
Kris Maglione
2010-10-20 02:34:36 -04:00
parent 093365f753
commit 88b491ca44

View File

@@ -577,7 +577,10 @@ const RangeFind = Class("RangeFind", {
}, },
purgeListeners: function () { purgeListeners: function () {
for (let range in array.iterValues(this.ranges)) 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) { onUnload: function (event) {
this.purgeListeners(); this.purgeListeners();