Bug 1439288 - Remove synthesizeCompositionEvent. r?ato draft
authorCameron McCormack <cam@mcc.id.au>
Mon, 19 Feb 2018 11:26:51 +0800
changeset 756878 c0c70356451c0faba5d8fa7ac60dd07a460da8f7
parent 756874 717aca4170fc0951cf7db8fb88473cf16c2fcfdd
push id99572
push userbmo:cam@mcc.id.au
push dateMon, 19 Feb 2018 03:27:17 +0000
reviewersato
bugs1439288
milestone60.0a1
Bug 1439288 - Remove synthesizeCompositionEvent. r?ato MozReview-Commit-ID: FFz2Z8le7GG
testing/marionette/event.js
--- a/testing/marionette/event.js
+++ b/testing/marionette/event.js
@@ -1012,34 +1012,16 @@ event.synthesizeKeyExpectEvent = functio
   checkExpectedEvent_(
       expectedTarget,
       expectedEvent,
       eventHandler,
       testName);
 };
 
 /**
- * Synthesize a composition event.
- *
- * @param {DOMEvent} ev
- *     The composition event information.  This must have |type|
- *     member.  The value must be "compositionstart", "compositionend" or
- *     "compositionupdate".  And also this may have |data| and |locale|
- *     which would be used for the value of each property of the
- *     composition event.  Note that the data would be ignored if the
- *     event type were "compositionstart".
- * @param {Window=} window
- *     Window object.  Defaults to the current window.
- */
-event.synthesizeComposition = function(ev, window = undefined) {
-  let domutils = getDOMWindowUtils(window);
-  domutils.sendCompositionEvent(ev.type, ev.data || "", ev.locale || "");
-};
-
-/**
  * Synthesize a query selected text event.
  *
  * @param {Window=}
  *     Window object.  Defaults to the current window.
  *
  * @return {(nsIQueryContentEventResult|null)}
  *     Event's result, or null if it failed.
  */