Commit e5b46597 authored by Dan Robertson's avatar Dan Robertson
Browse files

Bug 1821733 - End the current wheel event group on perform action. r=webdriver-reviewers,whimboo

Ensure that a wheel event group does not live longer than the action
chain, by calling EndTransaction on performActions().

Depends on d1779234

Differential Revision: https://phabricator.services.mozilla.com/D177924
parent 79468295
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -514,6 +514,9 @@ export class MarionetteCommandsChild extends JSWindowActorChild {
    let actionChain = lazy.action.Chain.fromJSON(this.actionState, actions);

    await actionChain.dispatch(this.actionState, this.document.defaultView);
    // Terminate the current wheel transaction if there is one. Wheel
    // transactions should not live longer than a single action chain.
    ChromeUtils.endWheelTransaction();
  }

  /**
+0 −7
Original line number Diff line number Diff line
@@ -205,13 +205,6 @@ const COMMON_PREFERENCES = new Map([
  // Disable popup-blocker
  ["dom.disable_open_during_load", false],

  // Bug 1821733:
  // Do not bind wheel event targets to the current wheel transaction. This
  // can interfere with tests that run wheel events on different targets
  // within a short period of time and without another action between wheel
  // actions.
  ["dom.event.wheel-event-groups.enabled", false],

  // Enabling the support for File object creation in the content process
  ["dom.file.createInChild", true],