mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 14:25: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 () {
|
||||
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