Index: third_party/WebKit/Source/core/frame/DOMWindow.cpp |
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp |
index 974ed2c3612304b6ec8e03216bc3150de99941ec..3d13295c301bf1f1ffe55080cfade9cc5ce3ed76 100644 |
--- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp |
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp |
@@ -76,11 +76,8 @@ unsigned DOMWindow::length() const { |
return frame() ? frame()->tree().scopedChildCount() : 0; |
} |
-DOMWindow* DOMWindow::self() const { |
- if (!frame()) |
- return nullptr; |
- |
- return frame()->domWindow(); |
+v8::Local<v8::Object> DOMWindow::self(ScriptState* scriptState) const { |
+ return scriptState->context()->Global(); |
} |
DOMWindow* DOMWindow::opener() const { |