From df0367e947cee47e6cb7f864469ff0a394463099 Mon Sep 17 00:00:00 2001 From: girst Date: Tue, 24 Dec 2019 15:25:39 +0100 Subject: [PATCH] s/dispatchDOMEventViaPresShell/&ForTesting/ regressed by: fx73; Bug 1603074 the 3rd parameter was removed in fx62 (Bug 1455676), which we don't support any more, so that was pruned as well. --- extension/lib/utils.coffee | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/extension/lib/utils.coffee b/extension/lib/utils.coffee index 6e414d3..9ed48e9 100644 --- a/extension/lib/utils.coffee +++ b/extension/lib/utils.coffee @@ -357,16 +357,9 @@ simulateMouseEvents = (element, sequence, browserOffset) -> element.focus() if type == 'contextmenu' # for element.dispatchEvent(mouseEvent) else - # The last `true` below marks the event as trusted, which some APIs - # require, such as `requestFullscreen()`. - # (`element.dispatchEvent(mouseEvent)` is not able to do this.) - windowUtils = - window.windowUtils or - window - .QueryInterface(Ci.nsIInterfaceRequestor) - .getInterface(Ci.nsIDOMWindowUtils) # Removed in Firefox 63. - windowUtils - .dispatchDOMEventViaPresShell(element, mouseEvent, true) + (window.windowUtils.dispatchDOMEventViaPresShellForTesting or + window.windowUtils.dispatchDOMEventViaPresShell # < fx73 + )(element, mouseEvent) return -- 2.39.3