 diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
-index 9a9e07e..affccfe 100644
+index 1d1e5ec..672a8cf 100644
 --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
 +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
-@@ -844,6 +844,13 @@ v8::Local<v8::Context> WebLocalFrameImpl::mainWorldScriptContext() const
+@@ -829,6 +829,12 @@ v8::Local<v8::Context> WebLocalFrameImpl::mainWorldScriptContext() const
      return scriptState->context();
  }
  
 +v8::Local<v8::Context> WebLocalFrameImpl::worldScriptContext(v8::Isolate* isolate, int worldID, int extensionGroup) const
 +{
-+  RefPtr<DOMWrapperWorld> world = DOMWrapperWorld::ensureIsolatedWorld(
-+      isolate, worldID, extensionGroup);
-+  return ScriptState::forWorld(frame(), *world)->context();
++    PassRefPtr<DOMWrapperWorld> world = DOMWrapperWorld::ensureIsolatedWorld(isolate, worldID, extensionGroup);
++    return ScriptState::forWorld(frame(), *world)->context();
 +}
 +
  bool WebFrame::scriptCanAccess(WebFrame* target)
  {
-     return BindingSecurity::shouldAllowAccessToFrame(mainThreadIsolate(), currentDOMWindow(mainThreadIsolate()), target->toImplBase()->frame(), DoNotReportSecurityError);
+     return BindingSecurity::shouldAllowAccessToFrame(currentDOMWindow(mainThreadIsolate()), target->toImplBase()->frame(), BindingSecurity::ErrorReportOption::DoNotReport);
 diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.h b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
-index 8f1a7ce..9faab81 100644
+index b2ff8df..b7113a9 100644
 --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.h
 +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
 @@ -122,6 +122,7 @@ public:

     void reloadWithOverrideURL(const WebURL& overrideUrl, WebFrameLoadType) override;
     void reloadImage(const WebNode&) override;
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
index 9e4b630..58bc9b3 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -248,6 +248,12 @@ v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const

     void reloadWithOverrideURL(const WebURL& overrideUrl, WebFrameLoadType) override;
     void loadRequest(const WebURLRequest&) override;
diff --git a/third_party/WebKit/public/web/WebFrame.h b/third_party/WebKit/public/web/WebFrame.h
index 26bb626..01d272e 100644
--- a/third_party/WebKit/public/web/WebFrame.h
+++ b/third_party/WebKit/public/web/WebFrame.h
@@ -45,6 +45,7 @@ struct NPObject;
 namespace v8 {
 class Context;
 class Function;
