summaryrefslogtreecommitdiffstats
path: root/dom/base/nsGlobalWindow.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-07-18 18:39:06 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-18 18:39:06 +0200
commita4f56a43b634658ee5d6047490fb3a5c24bbee3c (patch)
tree2439e8cb1bdaa2bebdbc885b8c323abb95a6e9e7 /dom/base/nsGlobalWindow.cpp
parentc1cfd11d6abd13cb7868e510007c8d25be6096ec (diff)
downloadUXP-a4f56a43b634658ee5d6047490fb3a5c24bbee3c.tar
UXP-a4f56a43b634658ee5d6047490fb3a5c24bbee3c.tar.gz
UXP-a4f56a43b634658ee5d6047490fb3a5c24bbee3c.tar.lz
UXP-a4f56a43b634658ee5d6047490fb3a5c24bbee3c.tar.xz
UXP-a4f56a43b634658ee5d6047490fb3a5c24bbee3c.zip
Consider domain when deciding on inner window reuse.
Diffstat (limited to 'dom/base/nsGlobalWindow.cpp')
-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 f9126f4da..7895ce613 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;