Juggler actually uses the following code here: ``` frame.textInputProcessor().commitCompositionWith(text); ```
Bug 1595177 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Juggler actually uses the following code tight to a frame: ``` textInputProcessor() { if (!this._textInputProcessor) { this._textInputProcessor = Cc["@mozilla.org/text-input-processor;1"].createInstance(Ci.nsITextInputProcessor); this._textInputProcessor.beginInputTransactionForTests(this._docShell.DOMWindow); } return this._textInputProcessor; } textInputProcessor().commitCompositionWith(text); ```