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:
Julian Descottes 2022-11-07 11:44:39 +00:00
parent 3a66f0e8ec
commit cb59a766e7

View file

@ -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;
}