Fix for bug 207413: Midas: designMode = "on" fails for a newly created iframe
patch by jst r=ere sr=kin git-svn-id: svn://10.0.0.236/trunk@143115 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b11b344076
commit
f7a65f0fc8
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user