Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
index 2efdc8567c68547b6998a86cdac47713c39a9357..652db6308f69ee7c7ef47fa086dec0d505cdf9c0 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
@@ -1496,7 +1496,9 @@ PassRefPtrWillBeRawPtr<DOMWindow> LocalDOMWindow::open(const String& urlString, |
return targetFrame->domWindow(); |
} |
- return createWindow(urlString, frameName, WindowFeatures(windowFeaturesString), *callingWindow, *firstFrame, *frame()); |
+ WindowFeatures features(windowFeaturesString); |
+ RefPtrWillBeRawPtr<DOMWindow> newWindow = createWindow(urlString, frameName, features, *callingWindow, *firstFrame, *frame()); |
+ return features.noopener ? nullptr : newWindow; |
} |
DEFINE_TRACE(LocalDOMWindow) |