#559: M1550498 M1548822 M1540759(partial) M1528481(+WeakPtr for Http2Stream) M1555523 M1552541

This commit is contained in:
Cameron Kaiser
2019-07-04 13:31:06 -07:00
parent fa8b0e6736
commit 4649687068
10 changed files with 74 additions and 47 deletions
+6 -4
View File
@@ -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;