зеркало из https://github.com/mozilla/pjs.git
bug 335801, Loading a cert URL can make an http page look like https
r/sr=cbiesinger
This commit is contained in:
Родитель
19e9208204
Коммит
e8f37ed00e
|
@ -861,6 +861,14 @@ nsSecureBrowserUIImpl::OnStateChange(nsIWebProgress* aWebProgress,
|
|||
}
|
||||
}
|
||||
|
||||
if (loadFlags & nsIChannel::LOAD_RETARGETED_DOCUMENT_URI)
|
||||
{
|
||||
// The original consumer (this) is no longer the target of the load.
|
||||
// Ignore any events with this flag, do not allow them to update
|
||||
// our secure UI state.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (aProgressStateFlags & STATE_START
|
||||
&&
|
||||
aProgressStateFlags & STATE_IS_REQUEST
|
||||
|
|
Загрузка…
Ссылка в новой задаче