mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 22:02:31 +02:00
Ignore some errors on failed incrimental search on FF36. Closes issue #96.
This commit is contained in:
1 parent
093365f753
commit
88b491ca44
1 file changed
+4
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user