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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_event.js

Issue 1915753002: Sanitize inheritance in callers of utils.expose (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: webview: Set proto on prototype. Created 4 years, 8 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: chrome/renderer/resources/extensions/automation/automation_event.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_event.js b/chrome/renderer/resources/extensions/automation/automation_event.js
index 0ba408d9e82dae617c369e73ecc1d03c91487c35..70daef272b1faeaf00eeee6039545c164b7ae816 100644
--- a/chrome/renderer/resources/extensions/automation/automation_event.js
+++ b/chrome/renderer/resources/extensions/automation/automation_event.js
@@ -4,19 +4,21 @@
var utils = require('utils');
-var AutomationEventImpl = function(type, target) {
+function AutomationEventImpl(type, target) {
this.propagationStopped = false;
// TODO(aboxhall): make these read-only properties
this.type = type;
this.target = target;
this.eventPhase = Event.NONE;
-};
+}
+$Object.setPrototypeOf(AutomationEventImpl, null);
AutomationEventImpl.prototype = {
+ __proto__: null,
stopPropagation: function() {
this.propagationStopped = true;
- }
+ },
};
function AutomationEvent() {

Powered by Google App Engine
This is Rietveld 408576698