mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-01 06:01:16 +00:00
Reset mixed-mode page status to secure if no actual load has occurred through the mixed content blocker.
This should take care of injection of non-network URIs that aren't same origin (e.g. extension-sourced data: URIs) triggering mixed-mode warnings. Assumption here is that data: URIs are safe if "local"; this is a security trade-off that should be acceptable.
This commit is contained in:
@@ -261,7 +261,19 @@ 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
|
||||
// * If not, the state should not be broken because no actual mixed-content
|
||||
// load has occurred, overriding the previous state if it was flagged as mixed.
|
||||
if (lock == lis_mixed_security &&
|
||||
!docShell->GetHasMixedActiveContentLoaded() &&
|
||||
!docShell->GetHasMixedDisplayContentLoaded() &&
|
||||
!docShell->GetHasMixedActiveContentBlocked() &&
|
||||
!docShell->GetHasMixedDisplayContentBlocked()) {
|
||||
*aState = STATE_IS_SECURE;
|
||||
if (ev) {
|
||||
*aState |= nsIWebProgressListener::STATE_IDENTITY_EV_TOPLEVEL;
|
||||
}
|
||||
}
|
||||
// * If so, the state should be broken; overriding the previous state
|
||||
// set by the lock parameter.
|
||||
if (docShell->GetHasMixedActiveContentLoaded() &&
|
||||
docShell->GetHasMixedDisplayContentLoaded()) {
|
||||
|
||||
Reference in New Issue
Block a user