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

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: Nit: space after ':' 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
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bd5a3d209610c75e9dce1ad932b41b95d04ff193 100644
--- a/chrome/renderer/resources/extensions/automation/automation_event.js
+++ b/chrome/renderer/resources/extensions/automation/automation_event.js
@@ -4,19 +4,20 @@
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;
-};
+}
AutomationEventImpl.prototype = {
+ __proto__: null,
stopPropagation: function() {
this.propagationStopped = true;
- }
+ },
};
function AutomationEvent() {
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698