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

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

Issue 2323413002: Support ImageData cloning in the V8-based structured clone path. (Closed)
Patch Set: does win_clang like the other order better? Created 4 years, 3 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/V8BindingForTesting.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp
index 41a0d7940f5fe4cfcabad5f9aa748c5755346680..8c2486d4e4dea9b39d944c99122823f019b202bb 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp
@@ -4,6 +4,7 @@
#include "bindings/core/v8/V8BindingForTesting.h"
+#include "core/frame/Settings.h"
#include "core/testing/DummyPageHolder.h"
namespace blink {
@@ -37,7 +38,9 @@ V8TestingScope::V8TestingScope()
, m_handleScope(isolate())
, m_context(getScriptState()->context())
, m_contextScope(context())
+ , m_tryCatch(isolate())
{
+ frame().settings()->setScriptEnabled(true);
}
ScriptState* V8TestingScope::getScriptState() const

Powered by Google App Engine
This is Rietveld 408576698