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

Unified Diff: chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js

Issue 1939833003: Sanitize inheritance in callers of utils.expose (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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/enterprise_platform_keys/key_pair.js
diff --git a/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js b/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js
index 1cab18f8487051fc6cbc8e4829029473b54581a7..d31ffaf5a37b7f35548a8d27e3db0669d73c6e49 100644
--- a/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js
+++ b/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js
@@ -17,7 +17,7 @@ var KeyUsage = keyModule.KeyUsage;
* @param {KeyUsage[]} usages The allowed key usages.
* @constructor
*/
-var KeyPairImpl = function(publicKeySpki, algorithm, usages) {
+function KeyPairImpl(publicKeySpki, algorithm, usages) {
this.publicKey = new Key(KeyType.public,
publicKeySpki,
algorithm,
@@ -28,7 +28,8 @@ var KeyPairImpl = function(publicKeySpki, algorithm, usages) {
algorithm,
intersect([KeyUsage.sign], usages),
false /* not extractable */);
-};
+}
+$Object.setPrototypeOf(KeyPairImpl.prototype, null);
function KeyPair() {
privates(KeyPair).constructPrivate(this, arguments);

Powered by Google App Engine
This is Rietveld 408576698