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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp

Issue 2379313002: Fix 'noopener' targeting and return value. (Closed)
Patch Set: Rebase Created 4 years, 2 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/bindings/core/v8/custom/V8WindowCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
index 176a6376689567713d4f45fe2c10e2f45e7a6160..2288a3c237461e3f882fcdcf57b08f6a97e2ce01 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
@@ -259,8 +259,10 @@ void V8Window::openMethodCustom(
DOMWindow* openedWindow = toLocalDOMWindow(impl)->open(
urlString, frameName, windowFeaturesString,
currentDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()));
- if (!openedWindow)
+ if (!openedWindow) {
+ v8SetReturnValueNull(info);
return;
+ }
v8SetReturnValueFast(info, openedWindow, impl);
}

Powered by Google App Engine
This is Rietveld 408576698