Bug 527935 - Part 3: Generate the input event for editor IME transaction commits if needed; r=roc a=blocking-final+
--- a/editor/libeditor/base/nsEditorEventListener.cpp
+++ b/editor/libeditor/base/nsEditorEventListener.cpp
@@ -808,16 +808,21 @@ nsEditorEventListener::HandleStartCompos
NS_IMETHODIMP
nsEditorEventListener::HandleEndComposition(nsIDOMEvent* aCompositionEvent)
{
NS_ENSURE_TRUE(mEditor, NS_ERROR_NOT_AVAILABLE);
if (!mEditor->IsAcceptableInputEvent(aCompositionEvent)) {
return NS_OK;
}
+
+ // Transfer the event's trusted-ness to our editor
+ nsCOMPtr<nsIDOMNSEvent> NSEvent = do_QueryInterface(aCompositionEvent);
+ nsAutoEditorKeypressOperation operation(mEditor, NSEvent);
+
return mEditor->EndIMEComposition();
}
/**
* nsIDOMFocusListener implementation
*/
NS_IMETHODIMP