@@ -10,10 +10,10 @@ DidCreateScriptContext is called, not all JS APIs are available in the
10
10
context, which can cause some preload scripts to trip.
11
11
12
12
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h
13
- index 831a3574055881f31a3e7dbc98c0525b47af5dcb..9626f181ee471fec68af7ddfc968f2d852698b74 100644
13
+ index 4e195f960d7b9bf50f6784ce380a84a10867914f..dbf85ffe8504bdbab1c4c29f085e5307654d42f6 100644
14
14
--- a/content/public/renderer/render_frame_observer.h
15
15
+++ b/content/public/renderer/render_frame_observer.h
16
- @@ -114 ,6 +114 ,8 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
16
+ @@ -115 ,6 +115 ,8 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
17
17
virtual void DidHandleOnloadEvents() {}
18
18
virtual void DidCreateScriptContext(v8::Local<v8::Context> context,
19
19
int32_t world_id) {}
@@ -23,10 +23,10 @@ index 831a3574055881f31a3e7dbc98c0525b47af5dcb..9626f181ee471fec68af7ddfc968f2d8
23
23
int32_t world_id) {}
24
24
virtual void DidClearWindowObject() {}
25
25
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
26
- index 0fe316e4d949bf2c0e64a2374a8f639e3afee104..cb612a7002a4ae808ca488e2aa2adbb759310964 100644
26
+ index 0cb96dd693459a9747aa1e2c46c5257df510211a..010ed22b5da75c445b777bd0db503b268c7a767f 100644
27
27
--- a/content/renderer/render_frame_impl.cc
28
28
+++ b/content/renderer/render_frame_impl.cc
29
- @@ -4729 ,6 +4729 ,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
29
+ @@ -4745 ,6 +4745 ,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
30
30
observer.DidCreateScriptContext(context, world_id);
31
31
}
32
32
@@ -40,10 +40,10 @@ index 0fe316e4d949bf2c0e64a2374a8f639e3afee104..cb612a7002a4ae808ca488e2aa2adbb7
40
40
int world_id) {
41
41
for (auto& observer : observers_)
42
42
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
43
- index c8772a65b238f52855a6634dbe1722491a663354..c856fb03735e3a46135492513e71daf3b1dc6c1a 100644
43
+ index b1465918040a8eaafd5780aaf9fb6f870c9ea943..2fb7927168ac62c52d2e65942608dd9b73ac3133 100644
44
44
--- a/content/renderer/render_frame_impl.h
45
45
+++ b/content/renderer/render_frame_impl.h
46
- @@ -724 ,6 +724 ,8 @@ class CONTENT_EXPORT RenderFrameImpl
46
+ @@ -722 ,6 +722 ,8 @@ class CONTENT_EXPORT RenderFrameImpl
47
47
bool ShouldTrackUseCounter(const blink::WebURL& url) override;
48
48
void DidCreateScriptContext(v8::Local<v8::Context> context,
49
49
int world_id) override;
@@ -53,10 +53,10 @@ index c8772a65b238f52855a6634dbe1722491a663354..c856fb03735e3a46135492513e71daf3
53
53
int world_id) override;
54
54
void DidChangeScrollOffset() override;
55
55
diff --git a/third_party/blink/public/web/web_local_frame_client.h b/third_party/blink/public/web/web_local_frame_client.h
56
- index e8286b37ae00d2cbfea0f9138ecb6532c36324fc..1c5aae1c07e0c730a0cab28dccaa5a793d41d6ac 100644
56
+ index 902504b8399c53fee972fe5549a4dbd39274a3c8..ddf6b6b696f7d990b7455ac6c9b8156a733b6c07 100644
57
57
--- a/third_party/blink/public/web/web_local_frame_client.h
58
58
+++ b/third_party/blink/public/web/web_local_frame_client.h
59
- @@ -547 ,6 +547 ,9 @@ class BLINK_EXPORT WebLocalFrameClient {
59
+ @@ -542 ,6 +542 ,9 @@ class BLINK_EXPORT WebLocalFrameClient {
60
60
virtual void DidCreateScriptContext(v8::Local<v8::Context>,
61
61
int32_t world_id) {}
62
62
@@ -67,7 +67,7 @@ index e8286b37ae00d2cbfea0f9138ecb6532c36324fc..1c5aae1c07e0c730a0cab28dccaa5a79
67
67
virtual void WillReleaseScriptContext(v8::Local<v8::Context>,
68
68
int32_t world_id) {}
69
69
diff --git a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
70
- index 1841d4bea144e2fe0fb69839d52ff2ba4aa6b551..64c5eb7d0da7684531b044de9d6d114fc897786e 100644
70
+ index 5ac9a7ed3d0f91764452579992471c83104de64f..15ac214bc9177f2fc228cf93c459a7b385bdc582 100644
71
71
--- a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
72
72
+++ b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
73
73
@@ -201,6 +201,7 @@ void LocalWindowProxy::Initialize() {
@@ -79,10 +79,10 @@ index 1841d4bea144e2fe0fb69839d52ff2ba4aa6b551..64c5eb7d0da7684531b044de9d6d114f
79
79
if (World().IsMainWorld()) {
80
80
GetFrame()->Loader().DispatchDidClearWindowObjectInMainWorld();
81
81
diff --git a/third_party/blink/renderer/core/exported/local_frame_client_impl.cc b/third_party/blink/renderer/core/exported/local_frame_client_impl.cc
82
- index eae1fafbaab524e590f414b54b366a6d709fad47..97da1b1639618dded697eb72d5959926ce725e24 100644
82
+ index ba02a164a799b2b9e92bbeeb2bff2a4a2fd7d662..42ed050d572b13f1302bfb9eb5b59b15ba5a6904 100644
83
83
--- a/third_party/blink/renderer/core/exported/local_frame_client_impl.cc
84
84
+++ b/third_party/blink/renderer/core/exported/local_frame_client_impl.cc
85
- @@ -348 ,6 +348 ,13 @@ void LocalFrameClientImpl::DidCreateScriptContext(
85
+ @@ -349 ,6 +349 ,13 @@ void LocalFrameClientImpl::DidCreateScriptContext(
86
86
web_frame_->Client()->DidCreateScriptContext(context, world_id);
87
87
}
88
88
@@ -97,10 +97,10 @@ index eae1fafbaab524e590f414b54b366a6d709fad47..97da1b1639618dded697eb72d5959926
97
97
v8::Local<v8::Context> context,
98
98
int32_t world_id) {
99
99
diff --git a/third_party/blink/renderer/core/exported/local_frame_client_impl.h b/third_party/blink/renderer/core/exported/local_frame_client_impl.h
100
- index 7494f29aebe486454f35209a4a72d42dd46431a0..89f4129124b7fb01c449c51f767f4fe0dcc9c299 100644
100
+ index 183a009cf58399966c9002786ede3d540aa068cb..dbe445cf40ec53e4b36e4a323334662c70359a38 100644
101
101
--- a/third_party/blink/renderer/core/exported/local_frame_client_impl.h
102
102
+++ b/third_party/blink/renderer/core/exported/local_frame_client_impl.h
103
- @@ -78,6 +78,8 @@ class LocalFrameClientImpl final : public LocalFrameClient {
103
+ @@ -78,6 +78,8 @@ class CORE_EXPORT LocalFrameClientImpl final : public LocalFrameClient {
104
104
105
105
void DidCreateScriptContext(v8::Local<v8::Context>,
106
106
int32_t world_id) override;
@@ -123,10 +123,10 @@ index a8443a8bfc2542ffad472206214279c1223d493f..8c7a4dec19d6fbca615b7bc282b03881
123
123
int32_t world_id) = 0;
124
124
virtual bool AllowScriptExtensions() = 0;
125
125
diff --git a/third_party/blink/renderer/core/loader/empty_clients.h b/third_party/blink/renderer/core/loader/empty_clients.h
126
- index 7f060dbe946a6df2d4e4f376512679390edadc07..435882fafb3e08b94424e812ee825e7a042dfef3 100644
126
+ index a3797ca04ff968d67ce4c5da6b9f17abc1d7651d..e3f26a61cdc4042131ea58d744a9b487dd6f52ca 100644
127
127
--- a/third_party/blink/renderer/core/loader/empty_clients.h
128
128
+++ b/third_party/blink/renderer/core/loader/empty_clients.h
129
- @@ -334 ,6 +334 ,8 @@ class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {
129
+ @@ -336 ,6 +336 ,8 @@ class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {
130
130
131
131
void DidCreateScriptContext(v8::Local<v8::Context>,
132
132
int32_t world_id) override {}
0 commit comments