massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577, 36062, 36217, 41191, 41491, 42356, 42829, 43016 r=saari (joki code). also been tested by heikki and bryner
This commit is contained in:
@@ -1938,6 +1938,15 @@ nsHTMLDocument::OpenCommon(nsIURI* aSourceURL)
|
||||
|
||||
result = NS_OpenURI(getter_AddRefs(channel), aSourceURL, nsnull, group);
|
||||
if (NS_FAILED(result)) return result;
|
||||
|
||||
//Before we reset the doc notify the globalwindow of the change.
|
||||
if (mScriptGlobalObject) {
|
||||
//Hold onto ourselves on the offchance that we're down to one ref
|
||||
nsCOMPtr<nsIDOMDocument> kungFuDeathGrip (do_QueryInterface((nsIHTMLDocument*)this));
|
||||
result = mScriptGlobalObject->SetNewDocument(kungFuDeathGrip);
|
||||
if (NS_FAILED(result)) return result;
|
||||
}
|
||||
|
||||
result = Reset(channel, group);
|
||||
if (NS_FAILED(result)) return result;
|
||||
if (NS_OK == result) {
|
||||
|
||||
Reference in New Issue
Block a user