зеркало из https://github.com/mozilla/pjs.git
Fix for bug 207413: Midas: designMode = "on" fails for a newly created iframe
patch by jst r=ere sr=kin
This commit is contained in:
Родитель
ece05c4d2e
Коммит
85bf83d3ee
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче