From 85bf83d3ee1d8ff5b5350f82d5d1eed38107849c Mon Sep 17 00:00:00 2001 From: "ere%atp.fi" Date: Fri, 30 May 2003 20:04:50 +0000 Subject: [PATCH] Fix for bug 207413: Midas: designMode = "on" fails for a newly created iframe patch by jst r=ere sr=kin --- content/html/document/src/nsHTMLDocument.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content/html/document/src/nsHTMLDocument.cpp b/content/html/document/src/nsHTMLDocument.cpp index 4e1df03888b..3c06a3b82d7 100644 --- a/content/html/document/src/nsHTMLDocument.cpp +++ b/content/html/document/src/nsHTMLDocument.cpp @@ -450,6 +450,11 @@ nsHTMLDocument::BaseResetToURI(nsIURI *aURL) mBaseTarget.Truncate(); + // Make the content type default to "text/html", we are a HTML + // document, after all. Once we start getting data, this may be + // changed. + mContentType = "text/html"; + return rv; } @@ -2497,10 +2502,6 @@ nsHTMLDocument::OpenCommon(nsIURI* aSourceURL) return rv; } - // Set the content type to "text/html" since we're always producing - // HTML when calling document.write(). - mContentType = "text/html"; - if (root) { // Tear down the frames for the root element. ContentRemoved(nsnull, root, 0);