@@ -9,10 +9,10 @@ potentially prevent a window from being created.
9
9
TODO(loc): this patch is currently broken.
10
10
11
11
diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/browser/renderer_host/render_frame_host_impl.cc
12
- index ea7a56f9ebab820bc50167d1f6848078d59f4737..e0708cae6968c14f912bac9c8c7ff90344454237 100644
12
+ index 98c865765c57d3387c9193df0fab73bae678983a..f737902ba9a5ff5b98940eca4a8e7c057c64b3bd 100644
13
13
--- a/content/browser/renderer_host/render_frame_host_impl.cc
14
14
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
15
- @@ -9104 ,6 +9104 ,7 @@ void RenderFrameHostImpl::CreateNewWindow(
15
+ @@ -9115 ,6 +9115 ,7 @@ void RenderFrameHostImpl::CreateNewWindow(
16
16
last_committed_origin_, params->window_container_type,
17
17
params->target_url, params->referrer.To<Referrer>(),
18
18
params->frame_name, params->disposition, *params->features,
@@ -21,10 +21,10 @@ index ea7a56f9ebab820bc50167d1f6848078d59f4737..e0708cae6968c14f912bac9c8c7ff903
21
21
&no_javascript_access);
22
22
23
23
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
24
- index 62854bb03a4e72b716a823ee7fafbb011a86ebb0..06ca908e1668050bb87609406fa4dc9eff9b6adf 100644
24
+ index f25b2cc6c138a4e201b6ec9f74f9cb5734195f24..c67be0c23f8b8d6f49ee82e1617c0f3cfee5c9ab 100644
25
25
--- a/content/browser/web_contents/web_contents_impl.cc
26
26
+++ b/content/browser/web_contents/web_contents_impl.cc
27
- @@ -4772 ,6 +4772 ,12 @@ FrameTree* WebContentsImpl::CreateNewWindow(
27
+ @@ -4781 ,6 +4781 ,12 @@ FrameTree* WebContentsImpl::CreateNewWindow(
28
28
SetPartitionedPopinOpenerOnNewWindowIfNeeded(new_contents_impl, params,
29
29
opener);
30
30
@@ -37,7 +37,7 @@ index 62854bb03a4e72b716a823ee7fafbb011a86ebb0..06ca908e1668050bb87609406fa4dc9e
37
37
// If the new frame has a name, make sure any SiteInstances that can find
38
38
// this named frame have proxies for it. Must be called after
39
39
// SetSessionStorageNamespace, since this calls CreateRenderView, which uses
40
- @@ -4813 ,12 +4819 ,6 @@ FrameTree* WebContentsImpl::CreateNewWindow(
40
+ @@ -4822 ,12 +4828 ,6 @@ FrameTree* WebContentsImpl::CreateNewWindow(
41
41
AddWebContentsDestructionObserver(new_contents_impl);
42
42
}
43
43
@@ -66,10 +66,10 @@ index 61ee456a1bfb842aefd8b644ff0ae630a698ef7c..cbf4276337139a81d46fb263bce8f5ee
66
66
67
67
// Operation result when the renderer asks the browser to create a new window.
68
68
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
69
- index e73432790e5bbd03dc3eb2a2d8c89d77d21430cc..5f60458d39e3554832b63c201e79633cf0219951 100644
69
+ index 21967547790cacc162d9b125e60ca24919b6b485..af7126cec088e5ece113dfbea19674421182abaa 100644
70
70
--- a/content/public/browser/content_browser_client.cc
71
71
+++ b/content/public/browser/content_browser_client.cc
72
- @@ -760 ,6 +760 ,8 @@ bool ContentBrowserClient::CanCreateWindow(
72
+ @@ -765 ,6 +765 ,8 @@ bool ContentBrowserClient::CanCreateWindow(
73
73
const std::string& frame_name,
74
74
WindowOpenDisposition disposition,
75
75
const blink::mojom::WindowFeatures& features,
@@ -79,7 +79,7 @@ index e73432790e5bbd03dc3eb2a2d8c89d77d21430cc..5f60458d39e3554832b63c201e79633c
79
79
bool opener_suppressed,
80
80
bool* no_javascript_access) {
81
81
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
82
- index 7326a96f8b615e7dd7f5077faab98a6a198209bd..ff16736f47ad642211ee21b44479c5e449acf33f 100644
82
+ index 0f6781dc459e1072e1f538b2c60c21699b175852..ad94803577af27c84e247ace2137995a9ca886e0 100644
83
83
--- a/content/public/browser/content_browser_client.h
84
84
+++ b/content/public/browser/content_browser_client.h
85
85
@@ -196,6 +196,7 @@ class NetworkService;
@@ -90,7 +90,7 @@ index 7326a96f8b615e7dd7f5077faab98a6a198209bd..ff16736f47ad642211ee21b44479c5e4
90
90
} // namespace network
91
91
92
92
namespace sandbox {
93
- @@ -1322 ,6 +1323 ,8 @@ class CONTENT_EXPORT ContentBrowserClient {
93
+ @@ -1325 ,6 +1326 ,8 @@ class CONTENT_EXPORT ContentBrowserClient {
94
94
const std::string& frame_name,
95
95
WindowOpenDisposition disposition,
96
96
const blink::mojom::WindowFeatures& features,
@@ -100,7 +100,7 @@ index 7326a96f8b615e7dd7f5077faab98a6a198209bd..ff16736f47ad642211ee21b44479c5e4
100
100
bool opener_suppressed,
101
101
bool* no_javascript_access);
102
102
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
103
- index 9d14f11ef397a525633292dbedfed40f38a9ec8f..49bc6ce731ea06cae8281107dbaa527060ffd4ce 100644
103
+ index 784103345ed40cce8823048bcd6a48c722866f15..94202a07c8774a9ad62938506b22ea3f72916372 100644
104
104
--- a/content/public/browser/web_contents_delegate.cc
105
105
+++ b/content/public/browser/web_contents_delegate.cc
106
106
@@ -31,6 +31,17 @@ namespace content {
@@ -122,7 +122,7 @@ index 9d14f11ef397a525633292dbedfed40f38a9ec8f..49bc6ce731ea06cae8281107dbaa5270
122
122
WebContents* source,
123
123
const OpenURLParams& params,
124
124
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
125
- index 294dc13ec8f27875c28b459b56b166f2c8f4a2ff..1a58077807de673e1937f3323c8dc37b4c69468e 100644
125
+ index 19dff7ea3f62e5095ee03335978dac5d58cc1465..cbec82fe1fbc43c188ac9c0cf318ee49aa83c503 100644
126
126
--- a/content/public/browser/web_contents_delegate.h
127
127
+++ b/content/public/browser/web_contents_delegate.h
128
128
@@ -17,6 +17,7 @@
@@ -163,7 +163,7 @@ index 1fd3487243760d5a64bcd27f7022d8d0326bab65..21ecced6578552e30c1a01841053f679
163
163
// moved on send.
164
164
bool is_background_tab =
165
165
diff --git a/content/web_test/browser/web_test_content_browser_client.cc b/content/web_test/browser/web_test_content_browser_client.cc
166
- index 9e564b2be92aefc2b58617de92dd8d519c3c784f..bf096ab972cc945d19473cc1e55f6f7fc9618778 100644
166
+ index b181f3d7429cdccfede3803b0659fc877d68e884..874753add7c176871fee299d32199ebfd9526c68 100644
167
167
--- a/content/web_test/browser/web_test_content_browser_client.cc
168
168
+++ b/content/web_test/browser/web_test_content_browser_client.cc
169
169
@@ -520,6 +520,8 @@ bool WebTestContentBrowserClient::CanCreateWindow(
@@ -176,7 +176,7 @@ index 9e564b2be92aefc2b58617de92dd8d519c3c784f..bf096ab972cc945d19473cc1e55f6f7f
176
176
bool opener_suppressed,
177
177
bool* no_javascript_access) {
178
178
diff --git a/content/web_test/browser/web_test_content_browser_client.h b/content/web_test/browser/web_test_content_browser_client.h
179
- index 4145d0d32ca1d1f02620a66f2437eaa58954b4d7..3cb5faab3f2e60d919dd7dd76fd320b8c63de84f 100644
179
+ index 126fe65469971b91e763a5e7640649dff1a096c4..398feea2aec7ece17d62259320db9035edabeccd 100644
180
180
--- a/content/web_test/browser/web_test_content_browser_client.h
181
181
+++ b/content/web_test/browser/web_test_content_browser_client.h
182
182
@@ -92,6 +92,8 @@ class WebTestContentBrowserClient : public ShellContentBrowserClient {
0 commit comments