summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-07-18 18:39:06 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-22 12:18:39 +0200
commitd9d452c04e934f09a47d978317e08d2a502b4abd (patch)
tree8e2a0152455edcfa88e9034769c954a1b1e122a3
parentf1e4a8867575ae83169379cc427567a030f99842 (diff)
downloaduxp-d9d452c04e934f09a47d978317e08d2a502b4abd.tar.gz
Consider domain when deciding on inner window reuse.
-rw-r--r--dom/base/nsGlobalWindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index f9126f4da7..7895ce6131 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -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;