22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
|
index a65a4f8daebf8376973daacdc105dc5eca22af4b..60d1b661036afdecf63da5f690a68805f1d60e17 100644
|
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
|
@@ -5469,6 +5469,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
|
// SiteInstance is created in a new BrowsingInstance.
|
|
scoped_refptr<SiteInstance> site_instance;
|
|
if (params.opener_suppressed) {
|
|
+ BRAVE_WEB_CONTENTS_IMPL_CREATE_NEW_WINDOW_OPENER_SUPPRESSED
|
|
if (is_guest) {
|
|
// For guests, noopener windows can be created in a new BrowsingInstance
|
|
// as long as they preserve the guest's StoragePartition.
|
|
@@ -5566,7 +5567,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
|
|
|
// Save the window for later if we're not suppressing the opener (since it
|
|
// will be shown immediately).
|
|
- if (!params.opener_suppressed) {
|
|
+ if (!params.opener_suppressed && !params.no_javascript_access) {
|
|
if (!is_guest) {
|
|
WebContentsView* new_view = new_contents_impl->view_.get();
|
|
|