diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-18 18:39:06 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-18 18:39:06 +0200 |
commit | a4f56a43b634658ee5d6047490fb3a5c24bbee3c (patch) | |
tree | 2439e8cb1bdaa2bebdbc885b8c323abb95a6e9e7 | |
parent | c1cfd11d6abd13cb7868e510007c8d25be6096ec (diff) | |
download | UXP-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.
-rw-r--r-- | dom/base/nsGlobalWindow.cpp | 3 |
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; |