зеркало из https://github.com/mozilla/gecko-dev.git
Bug 619092 indentation fix followup.
MozReview-Commit-ID: ACcpu8bVeiS
This commit is contained in:
Родитель
84fbdaa982
Коммит
6bd0320c4c
|
@ -2239,15 +2239,16 @@ nsDocument::Reset(nsIChannel* aChannel, nsILoadGroup* aLoadGroup)
|
|||
// Note: this should match nsDocShell::OnLoadingSite
|
||||
NS_GetFinalChannelURI(aChannel, getter_AddRefs(uri));
|
||||
|
||||
bool isWyciwyg = false;
|
||||
uri->SchemeIs("wyciwyg", &isWyciwyg);
|
||||
if (isWyciwyg) {
|
||||
nsCOMPtr<nsIURI> cleanURI;
|
||||
nsresult rv = nsContentUtils::RemoveWyciwygScheme(uri, getter_AddRefs(cleanURI));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
uri = cleanURI;
|
||||
bool isWyciwyg = false;
|
||||
uri->SchemeIs("wyciwyg", &isWyciwyg);
|
||||
if (isWyciwyg) {
|
||||
nsCOMPtr<nsIURI> cleanURI;
|
||||
nsresult rv =
|
||||
nsContentUtils::RemoveWyciwygScheme(uri, getter_AddRefs(cleanURI));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
uri = cleanURI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nsIScriptSecurityManager *securityManager =
|
||||
nsContentUtils::GetSecurityManager();
|
||||
|
|
Загрузка…
Ссылка в новой задаче