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_); |
} |