Bug 1254103 - Window.open() should not reuse an existing window if it's running a different container, r=bz

This commit is contained in:
Andrea Marchesini
2016-03-09 14:57:50 +01:00
parent e64b5bda15
commit 602308b5f8

View File

@@ -3497,8 +3497,8 @@ nsDocShell::CanAccessItem(nsIDocShellTreeItem* aTargetItem,
return false;
}
if (static_cast<nsDocShell*>(targetDS.get())->GetOriginAttributes().mUserContextId !=
static_cast<nsDocShell*>(accessingDS.get())->GetOriginAttributes().mUserContextId) {
if (static_cast<nsDocShell*>(targetDS.get())->GetOriginAttributes() !=
static_cast<nsDocShell*>(accessingDS.get())->GetOriginAttributes()) {
return false;
}