Bug 1439288 - Remove synthesizeCompositionEvent. r=ato
authorCameron McCormack <cam@mcc.id.au>
Mon, 19 Feb 2018 11:26:51 +0800
changeset 404396 1274d9304cecea8ab5a1093bcc20afaaf351a173
parent 404395 d0406024a77bdbc9e1b868fc985e26ae97436ace
child 404397 1f94fa48c7dc1452be45418ef956caf6de054c29
push id100000
push userncsoregi@mozilla.com
push dateMon, 19 Feb 2018 16:46:49 +0000
treeherdermozilla-inbound@176fb0d46b64 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1439288
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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.
  */