Index: third_party/WebKit/Source/web/WebTestingSupport.cpp |
diff --git a/third_party/WebKit/Source/web/WebTestingSupport.cpp b/third_party/WebKit/Source/web/WebTestingSupport.cpp |
index f89bc23af8c6f90d68b0560e05e8fe98e5a40cc2..ef1623b6b95377ca3525c2d4fede9cd106571bc4 100644 |
--- a/third_party/WebKit/Source/web/WebTestingSupport.cpp |
+++ b/third_party/WebKit/Source/web/WebTestingSupport.cpp |
@@ -51,4 +51,11 @@ void WebTestingSupport::resetInternalsObject(WebLocalFrame* frame) |
WebCoreTestSupport::resetInternalsObject(frame->mainWorldScriptContext()); |
} |
+void WebTestingSupport::injectInternalsObject(v8::Local<v8::Context> context) |
+{ |
+ V8InternalsPartial::initialize(); |
+ v8::HandleScope handleScope(v8::Isolate::GetCurrent()); |
+ WebCoreTestSupport::injectInternalsObject(context); |
+} |
+ |
} // namespace blink |