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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user