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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h

Issue 2594353003: Crash in blink::beforeCallEnteredCallback() (Closed)
Patch Set: Updated after review Created 3 years, 11 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/ScriptPromiseResolver.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
index e64369c12b93fa1514c26b7378d3ec445e4bf4ba..20ce083af5400b7ff745c4f7b477e74c0b2cd67a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
@@ -126,6 +126,9 @@ class CORE_EXPORT ScriptPromiseResolver
m_state = newState;
ScriptState::Scope scope(m_scriptState.get());
+ // TODO(aobzhirov): Converting value to the wrapper can trigger assert
+ // if the script is forbidden.
+ // The script check below will be unreachable in this case.
m_value.set(m_scriptState->isolate(),
ToV8(value, m_scriptState->context()->Global(),
m_scriptState->isolate()));

Powered by Google App Engine
This is Rietveld 408576698