Skip to content

Commit

Permalink
Bug 1799431 - [bidi] Fix errors this[#subscribedEvents].remove is not…
Browse files Browse the repository at this point in the history
… a function r=jgraham,webdriver-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D161437
  • Loading branch information
juliandescottes committed Nov 7, 2022
1 parent 3a66f0e commit cb59a76
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cb59a76

Please sign in to comment.