summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/cryptotoken/webrequest.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/cryptotoken/webrequest.js')
-rw-r--r--chrome/browser/resources/cryptotoken/webrequest.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/resources/cryptotoken/webrequest.js b/chrome/browser/resources/cryptotoken/webrequest.js
index 0564559..6c77e3f 100644
--- a/chrome/browser/resources/cryptotoken/webrequest.js
+++ b/chrome/browser/resources/cryptotoken/webrequest.js
@@ -237,7 +237,7 @@ function sendResponseOnce(sentResponse, closeable, response, sendResponse) {
console.warn('sendResponse failed: ' + exception);
}
} else {
- console.warn(UTIL_fmt('Tried to reply more than once! Juan, FIX ME'));
+ console.warn(UTIL_fmt('Tried to reply more than once!'));
}
}
@@ -251,6 +251,8 @@ function sha256HashOfString(string) {
return s.digest();
}
+var UNUSED_CID_PUBKEY_VALUE = 'unused';
+
/**
* Normalizes the TLS channel ID value:
* 1. Converts semantically empty values (undefined, null, 0) to the empty
@@ -262,9 +264,9 @@ function sha256HashOfString(string) {
*/
function tlsChannelIdValue(opt_tlsChannelId) {
if (!opt_tlsChannelId) {
- // Case 1: Always set some value for TLS channel ID, even if it's the empty
+ // Case 1: Always set some value for TLS channel ID, even if it's the empty
// string: this browser definitely supports them.
- return '';
+ return UNUSED_CID_PUBKEY_VALUE;
}
if (typeof opt_tlsChannelId === 'string') {
try {
@@ -273,7 +275,7 @@ function tlsChannelIdValue(opt_tlsChannelId) {
// Case 1: The string value 'null' parses as the Javascript object null,
// so return an empty string: the browser definitely supports TLS
// channel id.
- return '';
+ return UNUSED_CID_PUBKEY_VALUE;
}
// Case 2: return the value as a JS object.
return /** @type {Object} */ (obj);