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

Unified Diff: extensions/renderer/resources/web_request_internal_custom_bindings.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 | « extensions/renderer/resources/utils.js ('k') | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/web_request_internal_custom_bindings.js
diff --git a/extensions/renderer/resources/web_request_internal_custom_bindings.js b/extensions/renderer/resources/web_request_internal_custom_bindings.js
index df10729e6b3fb66ebe2df2912d7ca9c127e1ca02..32ad33b9b47666c372153a0c1218f6c37603aaa4 100644
--- a/extensions/renderer/resources/web_request_internal_custom_bindings.js
+++ b/extensions/renderer/resources/web_request_internal_custom_bindings.js
@@ -14,7 +14,7 @@ var idGeneratorNatives = requireNative('id_generator');
var webRequestInternal;
function GetUniqueSubEventName(eventName) {
- return eventName + "/" + idGeneratorNatives.GetNextId();
+ return eventName + '/' + idGeneratorNatives.GetNextId();
}
// WebRequestEventImpl object. This is used for special webRequest events
@@ -44,6 +44,7 @@ function WebRequestEventImpl(eventName, opt_argSchemas, opt_extraArgSchemas,
opt_webViewInstanceId);
}
}
+$Object.setPrototypeOf(WebRequestEventImpl.prototype, null);
// Test if the given callback is registered for this event.
WebRequestEventImpl.prototype.hasListener = function(cb) {
« no previous file with comments | « extensions/renderer/resources/utils.js ('k') | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698