mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1729925 - [devtools] Avoid leaking the rule panel via a click listener. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125543
This commit is contained in:
parent
3697b58bfa
commit
71569e1205
@ -851,7 +851,7 @@ CssRuleView.prototype = {
|
||||
|
||||
// Remove bound listeners
|
||||
this.shortcuts.destroy();
|
||||
this.styleDocument.removeEventListener("click", this);
|
||||
this.styleDocument.removeEventListener("click", this, { capture: true });
|
||||
this.element.removeEventListener("copy", this._onCopy);
|
||||
this.element.removeEventListener("contextmenu", this._onContextMenu);
|
||||
this.addRuleButton.removeEventListener("click", this._onAddRule);
|
||||
|
Loading…
Reference in New Issue
Block a user