mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-04-21 05:16:53 +00:00
#559: M1550498 M1548822 M1540759(partial) M1528481(+WeakPtr for Http2Stream) M1555523 M1552541
This commit is contained in:
@@ -2126,11 +2126,13 @@ nsGlobalWindow::WouldReuseInnerWindow(nsIDocument* aNewDocument)
|
||||
}
|
||||
|
||||
bool equal;
|
||||
if (NS_SUCCEEDED(mDoc->NodePrincipal()->Equals(aNewDocument->NodePrincipal(),
|
||||
&equal)) &&
|
||||
equal) {
|
||||
if (NS_SUCCEEDED(
|
||||
BasePrincipal::Cast(mDoc->NodePrincipal())->
|
||||
EqualsConsideringDomain(aNewDocument->NodePrincipal(),
|
||||
&equal))) {
|
||||
// Return the result. If true (bug 1552541):
|
||||
// The origin is the same.
|
||||
return true;
|
||||
return equal;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user