mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1372662 - Part 1: Never copy sessionstorage into noopener windows, r=smaug
This commit is contained in:
parent
d54cc4e71e
commit
2b0333c9b7
@ -1222,8 +1222,9 @@ nsWindowWatcher::OpenWindowInternal(mozIDOMWindowProxy* aParent,
|
||||
true);
|
||||
}
|
||||
|
||||
// Copy the current session storage for the current domain.
|
||||
if (subjectPrincipal && parentDocShell) {
|
||||
// Copy the current session storage for the current domain. Don't perform the
|
||||
// copy if we're forcing noopener, however.
|
||||
if (!aForceNoOpener && subjectPrincipal && parentDocShell) {
|
||||
nsCOMPtr<nsIDOMStorageManager> parentStorageManager =
|
||||
do_QueryInterface(parentDocShell);
|
||||
nsCOMPtr<nsIDOMStorageManager> newStorageManager =
|
||||
|
Loading…
Reference in New Issue
Block a user