Bug 1325282 - Remove use of nsIEditorIMESupport. r=Ratty
authorJorg K <jorgk@jorgk.com>
Fri, 23 Dec 2016 05:54:00 +0100
changeset 20956 9bd6f256ea516c871c5a51ebc28d20c36b70cbc5
parent 20955 614e97c63b00c526c59a03cd261886d508ca3d97
child 20957 c2e8d98586613f94a9e8217c9435a30cc3459a61
push id12705
push usermozilla@jorgk.com
push dateWed, 04 Jan 2017 08:00:59 +0000
treeherdercomm-central@9bd6f256ea51 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty
bugs1325282
Bug 1325282 - Remove use of nsIEditorIMESupport. r=Ratty
editor/ui/composer/content/ComposerCommands.js
--- a/editor/ui/composer/content/ComposerCommands.js
+++ b/editor/ui/composer/content/ComposerCommands.js
@@ -883,19 +883,18 @@ var gPersistObj;
       // this should cause notification to listeners that document has changed
 
 const webPersist = Components.interfaces.nsIWebBrowserPersist;
 function OutputFileWithPersistAPI(editorDoc, aDestinationLocation, aRelatedFilesParentDir, aMimeType)
 {
   gPersistObj = null;
   var editor = GetCurrentEditor();
   try {
-    var imeEditor = editor.QueryInterface(Components.interfaces.nsIEditorIMESupport);
-    imeEditor.forceCompositionEnd();
-    } catch (e) {}
+    editor.forceCompositionEnd();
+  } catch (e) {}
 
   var isLocalFile = false;
   try {
     var tmp1 = aDestinationLocation.QueryInterface(Components.interfaces.nsIFile);
     isLocalFile = true;
   }
   catch (e) {
     try {