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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.js

Issue 2574523004: Don't touch the prototype chain to get the private script controller. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.js
diff --git a/third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.js b/third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.js
index bab7c4c00e611132268357ebecc6a60af0baa5d0..e2571f43f7722dbf99cb78d37b6c9948ff06e6aa 100644
--- a/third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.js
+++ b/third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.js
@@ -139,7 +139,7 @@ PrivateScriptController.prototype = {
},
}
-if (typeof window.privateScriptController === 'undefined')
+if (!window.hasOwnProperty("privateScriptController"))
window.privateScriptController = new PrivateScriptController();
// This line must be the last statement of this JS file.
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698