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

Unified Diff: chrome/browser/resources/net_internals/hstsview.js

Issue 6793026: Initial support for HSTS certificate locking. This isn't a finished work, but (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/browser/resources/net_internals/hstsview.js
===================================================================
--- chrome/browser/resources/net_internals/hstsview.js (revision 80114)
+++ chrome/browser/resources/net_internals/hstsview.js (working copy)
@@ -12,12 +12,14 @@
*/
function HSTSView(mainBoxId, queryInputId, formId, queryOutputDivId,
addInputId, addFormId, addCheckId,
+ addLocksId,
deleteInputId, deleteFormId) {
abarth-chromium 2011/04/04 22:49:36 Merge these lines?
DivView.call(this, mainBoxId);
this.queryInput_ = document.getElementById(queryInputId);
this.addCheck_ = document.getElementById(addCheckId);
this.addInput_ = document.getElementById(addInputId);
+ this.addLocks_ = document.getElementById(addLocksId);
this.deleteInput_ = document.getElementById(deleteInputId);
this.queryOutputDiv_ = document.getElementById(queryOutputDivId);
@@ -39,11 +41,14 @@
};
HSTSView.prototype.onSubmitAdd_ = function(event) {
- g_browser.sendHSTSAdd(this.addInput_.value, this.addCheck_.checked);
+ g_browser.sendHSTSAdd(this.addInput_.value,
+ this.addCheck_.checked,
+ this.addLocks_.value);
g_browser.sendHSTSQuery(this.addInput_.value);
this.queryInput_.value = this.addInput_.value;
this.addCheck_.checked = false;
this.addInput_.value = '';
+ this.addLocks_.value = '';
event.preventDefault();
};
@@ -114,5 +119,10 @@
t = addNode(this.queryOutputDiv_, 'tt');
t.innerText = result.preloaded;
+ addTextNode(this.queryOutputDiv_, ' cert_locks:');
+
+ t = addNode(this.queryOutputDiv_, 'tt');
+ t.innerText = result.cert_locks;
+
yellowFade(this.queryOutputDiv_);
}
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/index.html » ('j') | chrome/browser/resources/net_internals/index.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698