Bug 1313033 - replace calls to nsIHTMLEditor.setDocumentTitle(). r=aceman,IanN a=IanN DONTBUILD
authorJorg K
Sun, 11 Dec 2016 22:23:57 +0100
changeset 23906 9fa9c0c8bbe105fb574a7e9be18c0af0de743f7f
parent 23905 7c81d51a19386dfe7d2c24b2eac698d20b0af6df
child 23907 8c4fe399a2ebd1d046eac477af33745fa832f74d
push id1973
push userclokep@gmail.com
push dateMon, 23 Jan 2017 21:55:50 +0000
treeherdercomm-aurora@9b85bcae26a8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman, IanN, IanN
bugs1313033
Bug 1313033 - replace calls to nsIHTMLEditor.setDocumentTitle(). r=aceman,IanN a=IanN DONTBUILD
editor/ui/composer/content/editorUtilities.js
mail/components/compose/content/MsgComposeCommands.js
suite/mailnews/compose/MsgComposeCommands.js
--- a/editor/ui/composer/content/editorUtilities.js
+++ b/editor/ui/composer/content/editorUtilities.js
@@ -326,17 +326,17 @@ function GetDocumentTitle()
 
   return "";
 }
 
 function SetDocumentTitle(title)
 {
 
   try {
-    GetCurrentEditor().setDocumentTitle(title);
+    GetCurrentEditorElement().contentDocument.title = title;
 
     // Update window title (doesn't work if called from a dialog)
     if ("UpdateWindowTitle" in window)
       window.UpdateWindowTitle();
   } catch (e) {}
 }
 
 var gAtomService;
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -3316,17 +3316,17 @@ function Save()
     case "template" : SaveAsTemplate(false);  break;
     default         : SaveAsDraft(false);     break;
   }
 }
 
 function SaveAsFile(saveAs)
 {
   var subject = GetMsgSubjectElement().value;
-  GetCurrentEditor().setDocumentTitle(subject);
+  GetCurrentEditorElement().contentDocument.title = subject;
 
   if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain)
     SaveDocument(saveAs, false, "text/plain");
   else
     SaveDocument(saveAs, false, "text/html");
   defaultSaveOperation = "file";
 }
 
--- a/suite/mailnews/compose/MsgComposeCommands.js
+++ b/suite/mailnews/compose/MsgComposeCommands.js
@@ -1721,17 +1721,17 @@ function Save()
     case "template" : SaveAsTemplate(false);  break;
     default         : SaveAsDraft(false);     break;
   }
 }
 
 function SaveAsFile(saveAs)
 {
   var subject = GetMsgSubjectElement().value;
-  GetCurrentEditor().setDocumentTitle(subject);
+  GetCurrentEditorElement().contentDocument.title = subject;
 
   if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain)
     SaveDocument(saveAs, false, "text/plain");
   else
     SaveDocument(saveAs, false, "text/html");
   defaultSaveOperation = "file";
 }