forked from mirrors/gecko-dev
Bug 1799431 - [bidi] Fix errors this[#subscribedEvents].remove is not a function r=jgraham,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161437
This commit is contained in:
parent
3a66f0e8ec
commit
cb59a766e7
1 changed files with 3 additions and 3 deletions
|
|
@ -73,13 +73,13 @@ class BrowsingContextModule extends Module {
|
|||
#unsubscribeEvent(event) {
|
||||
switch (event) {
|
||||
case "browsingContext._documentInteractive":
|
||||
this.#subscribedEvents.remove("browsingContext._documentInteractive");
|
||||
this.#subscribedEvents.delete("browsingContext._documentInteractive");
|
||||
break;
|
||||
case "browsingContext.domContentLoaded":
|
||||
this.#subscribedEvents.remove("browsingContext.domContentLoaded");
|
||||
this.#subscribedEvents.delete("browsingContext.domContentLoaded");
|
||||
break;
|
||||
case "browsingContext.load":
|
||||
this.#subscribedEvents.remove("browsingContext.load");
|
||||
this.#subscribedEvents.delete("browsingContext.load");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue