mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 836459 - If a page has both mixed display and mixed active content loaded, make sure both nsIWebProgressListener flags are set in psm. r=bsmith
This commit is contained in:
parent
4e89ec3e66
commit
ffe34e696a
@ -295,11 +295,18 @@ nsSecureBrowserUIImpl::MapInternalToExternalState(uint32_t* aState, lockIconStat
|
||||
// Has a Mixed Content Load initiated in nsMixedContentBlocker?
|
||||
// If so, the state should be broken; overriding the previous state
|
||||
// set by the lock parameter.
|
||||
if (docShell->GetHasMixedActiveContentLoaded())
|
||||
*aState = STATE_IS_BROKEN | nsIWebProgressListener::STATE_LOADED_MIXED_ACTIVE_CONTENT;
|
||||
|
||||
if (docShell->GetHasMixedDisplayContentLoaded())
|
||||
*aState = STATE_IS_BROKEN | nsIWebProgressListener::STATE_LOADED_MIXED_DISPLAY_CONTENT;
|
||||
if (docShell->GetHasMixedActiveContentLoaded() &&
|
||||
docShell->GetHasMixedDisplayContentLoaded()) {
|
||||
*aState = STATE_IS_BROKEN |
|
||||
nsIWebProgressListener::STATE_LOADED_MIXED_ACTIVE_CONTENT |
|
||||
nsIWebProgressListener::STATE_LOADED_MIXED_DISPLAY_CONTENT;
|
||||
} else if (docShell->GetHasMixedActiveContentLoaded()) {
|
||||
*aState = STATE_IS_BROKEN |
|
||||
nsIWebProgressListener::STATE_LOADED_MIXED_ACTIVE_CONTENT;
|
||||
} else if (docShell->GetHasMixedDisplayContentLoaded()) {
|
||||
*aState = STATE_IS_BROKEN |
|
||||
nsIWebProgressListener::STATE_LOADED_MIXED_DISPLAY_CONTENT;
|
||||
}
|
||||
|
||||
// Has Mixed Content Been Blocked in nsMixedContentBlocker?
|
||||
if (docShell->GetHasMixedActiveContentBlocked())
|
||||
|
Loading…
Reference in New Issue
Block a user