#168582 POST document is not displayed correctly in new window
carry over charset to new window. r=ftang, sr=jst
This commit is contained in:
@@ -1108,10 +1108,15 @@ nsresult nsDocShell::FindTarget(const PRUnichar *aWindowTarget,
|
||||
target_muCV = do_QueryInterface(target_cv);
|
||||
if (muCV && target_muCV) {
|
||||
nsXPIDLString defaultCharset;
|
||||
nsXPIDLString prevDocCharset;
|
||||
rv = muCV->GetDefaultCharacterSet(getter_Copies(defaultCharset));
|
||||
if(NS_SUCCEEDED(rv)) {
|
||||
target_muCV->SetDefaultCharacterSet(defaultCharset);
|
||||
}
|
||||
rv = muCV->GetPrevDocCharacterSet(getter_Copies(prevDocCharset));
|
||||
if(NS_SUCCEEDED(rv)) {
|
||||
target_muCV->SetPrevDocCharacterSet(prevDocCharset);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user