From ff09c2ff3639b2c250633f6b7b28a6c95e2d9742 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Wed, 7 May 2008 10:17:22 +0000 Subject: [PATCH] Bug 431184 - "Composer badly handles XHTML documents" ((Av1) Adds |Components.results.|) [p=sgautherie.bz@free.fr (Serge Gautherie) r+sr=Neil] --- editor/ui/composer/content/ComposerCommands.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/ui/composer/content/ComposerCommands.js b/editor/ui/composer/content/ComposerCommands.js index 35b62e90cbb..79fc27e8a34 100644 --- a/editor/ui/composer/content/ComposerCommands.js +++ b/editor/ui/composer/content/ComposerCommands.js @@ -1657,23 +1657,23 @@ function SaveDocument(aSaveAs, aSaveCopy, aMimeType) { var editor = GetCurrentEditor(); if (!aMimeType || aMimeType == "" || !editor) - throw NS_ERROR_NOT_INITIALIZED; + throw Components.results.NS_ERROR_NOT_INITIALIZED; var editorDoc = editor.document; if (!editorDoc) - throw NS_ERROR_NOT_INITIALIZED; + throw Components.results.NS_ERROR_NOT_INITIALIZED; // if we don't have the right editor type bail (we handle text and html) var editorType = GetCurrentEditorType(); if (editorType != "text" && editorType != "html" && editorType != "htmlmail" && editorType != "textmail") - throw NS_ERROR_NOT_IMPLEMENTED; + throw Components.results.NS_ERROR_NOT_IMPLEMENTED; var saveAsTextFile = IsSupportedTextMimeType(aMimeType); // check if the file is to be saved is a format we don't understand; if so, bail if (aMimeType != "text/html" && !saveAsTextFile) - throw NS_ERROR_NOT_IMPLEMENTED; + throw Components.results.NS_ERROR_NOT_IMPLEMENTED; if (saveAsTextFile) aMimeType = "text/plain";