Bug 1122507 - Fix the way the new network security tab toggles in the network panel now that we have the allTabs menu. r=past

This commit is contained in:
Patrick Brosset 2015-01-16 05:27:00 +01:00
Родитель 07962e80d1
Коммит f05d6f0c6d
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -2104,8 +2104,7 @@ NetworkDetailsView.prototype = {
// 2) come from a target that provides security information. // 2) come from a target that provides security information.
let hasSecurityInfo = aData.securityState && let hasSecurityInfo = aData.securityState &&
aData.securityState !== "insecure"; aData.securityState !== "insecure";
this.sidebar.toggleTab(hasSecurityInfo, "security-tab", "security-tabpanel");
$("#security-tab").hidden = !hasSecurityInfo;
// Switch to the "Headers" tabpanel if the "Preview" previously selected // Switch to the "Headers" tabpanel if the "Preview" previously selected
// and this is not an HTML response or "Security" was selected but this // and this is not an HTML response or "Security" was selected but this