Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2706923002: Rework security checks to be based on Window rather than Frame. (Closed)
Patch Set: Fix test typo Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index a95f10fc30b00e4b0c321788ff8a452a85917c96..1dcd17f8c92e6c1c3fa168b29f304125bf9ac3de 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -834,7 +834,7 @@ v8::Local<v8::Context> WebLocalFrameImpl::mainWorldScriptContext() const {
bool WebFrame::scriptCanAccess(WebFrame* target) {
return BindingSecurity::shouldAllowAccessToFrame(
- currentDOMWindow(mainThreadIsolate()), target->toImplBase()->frame(),
+ currentDOMWindow(mainThreadIsolate()), *target->toImplBase()->frame(),
BindingSecurity::ErrorReportOption::DoNotReport);
}

Powered by Google App Engine
This is Rietveld 408576698