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

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

Issue 2420223002: Dispatching errors across iframes don't match webplatform tests
Patch Set: Refactored ScriptStateForErrorEvent, added error handler to the test." Created 4 years, 1 month 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/V8ErrorHandler.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp
index 841bafc2bbf6b8f22030cf4a17682e62d5252588..5002aee0033d7c2f5b410ae766757f783c15e849 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp
@@ -61,6 +61,8 @@ v8::Local<v8::Value> V8ErrorHandler::callListenerFunction(
v8::Local<v8::Function> callFunction =
v8::Local<v8::Function>::Cast(listener);
+ ScriptStateForErrorEvent scope(callFunction->CreationContext());
haraken 2016/11/02 01:40:18 Add a comment about what this is doing.
Yuki 2016/11/02 07:32:43 nit: Avoid a general name "scope", which could be
+
v8::Local<v8::Object> thisValue = scriptState->context()->Global();
v8::Local<v8::Object> eventObject;

Powered by Google App Engine
This is Rietveld 408576698