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

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

Issue 2126763002: Remove the prototype from all V8 functions that aren't constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 5 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/DocumentWriteEvaluator.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
index 34e9b52ae25b89992f0e079b524a834de576d999..66af96ee87dab8644f9bfa595357aa709e0cb7de 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
@@ -102,6 +102,7 @@ bool DocumentWriteEvaluator::ensureEvaluationContext()
m_window.newLocal(isolate)->Set(navigatorString, m_navigator.newLocal(isolate));
v8::Local<v8::FunctionTemplate> writeTemplate = v8::FunctionTemplate::New(isolate, documentWriteCallback, v8::External::New(isolate, this));
+ writeTemplate->RemovePrototype();
m_document.newLocal(isolate)->Set(locationString, m_location.newLocal(isolate));
m_document.newLocal(isolate)->Set(v8String(isolate, "write"), writeTemplate->GetFunction());
m_document.newLocal(isolate)->Set(v8String(isolate, "writeln"), writeTemplate->GetFunction());

Powered by Google App Engine
This is Rietveld 408576698