Consider domain when deciding on inner window reuse.
This commit is contained in:
parent
57558ce7dd
commit
78293a0cfe
|
@ -2504,8 +2504,7 @@ nsGlobalWindow::WouldReuseInnerWindow(nsIDocument* aNewDocument)
|
|||
}
|
||||
|
||||
bool equal;
|
||||
if (NS_SUCCEEDED(mDoc->NodePrincipal()->Equals(aNewDocument->NodePrincipal(),
|
||||
&equal)) &&
|
||||
if (NS_SUCCEEDED(mDoc->NodePrincipal()->EqualsConsideringDomain(aNewDocument->NodePrincipal(), &equal)) &&
|
||||
equal) {
|
||||
// The origin is the same.
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user