Index: third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
index eb0cc5608fc6e02c902f86038dfdfc1ec58adfac..2de91ca9424a2539037b76788495e949f4b7a1bd 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
@@ -83,11 +83,11 @@ |
namespace blink { |
-bool ScriptController::canAccessFromCurrentOrigin(LocalFrame *frame) |
+bool ScriptController::canAccessFromCurrentOrigin(ExecutionContext& context, Frame* frame) |
haraken
2016/02/23 10:07:59
How about just passing v8::Isolate, rather than Ex
alexmos
2016/02/23 17:51:05
Done.
|
{ |
if (!frame) |
return false; |
- v8::Isolate* isolate = toIsolate(frame); |
+ v8::Isolate* isolate = toIsolate(&context); |
return !isolate->InContext() || BindingSecurity::shouldAllowAccessToFrame(isolate, callingDOMWindow(isolate), frame, ReportSecurityError); |
} |