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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js

Issue 1944853002: [DevTools] Security Panel: Use actual origin as textContent for title element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated style Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/security/originView.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.PanelWithSidebar} 7 * @extends {WebInspector.PanelWithSidebar}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.SecurityPanel = function() 10 WebInspector.SecurityPanel = function()
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 { 741 {
742 this._panel = panel; 742 this._panel = panel;
743 WebInspector.VBox.call(this); 743 WebInspector.VBox.call(this);
744 this.setMinimumSize(200, 100); 744 this.setMinimumSize(200, 100);
745 745
746 this.element.classList.add("security-origin-view"); 746 this.element.classList.add("security-origin-view");
747 this.registerRequiredCSS("security/originView.css"); 747 this.registerRequiredCSS("security/originView.css");
748 this.registerRequiredCSS("security/lockIcon.css"); 748 this.registerRequiredCSS("security/lockIcon.css");
749 749
750 var titleSection = this.element.createChild("div", "title-section"); 750 var titleSection = this.element.createChild("div", "title-section");
751 titleSection.createChild("div", "origin-view-title").textContent = WebInspec tor.UIString("Origin");
752 var originDisplay = titleSection.createChild("div", "origin-display"); 751 var originDisplay = titleSection.createChild("div", "origin-display");
753 this._originLockIcon = originDisplay.createChild("span", "security-property" ); 752 this._originLockIcon = originDisplay.createChild("span", "security-property" );
754 this._originLockIcon.classList.add("security-property-" + originState.securi tyState); 753 this._originLockIcon.classList.add("security-property-" + originState.securi tyState);
755 // TODO(lgarron): Highlight the origin scheme. https://crbug.com/523589 754 // TODO(lgarron): Highlight the origin scheme. https://crbug.com/523589
756 originDisplay.createChild("span", "origin").textContent = origin; 755 originDisplay.createChild("span", "origin").textContent = origin;
757 var originNetworkLink = titleSection.createChild("div", "link"); 756 var originNetworkLink = titleSection.createChild("div", "link");
758 originNetworkLink.textContent = WebInspector.UIString("View requests in Netw ork Panel"); 757 originNetworkLink.textContent = WebInspector.UIString("View requests in Netw ork Panel");
759 function showOriginRequestsInNetworkPanel() 758 function showOriginRequestsInNetworkPanel()
760 { 759 {
761 var parsedURL = new WebInspector.ParsedURL(origin); 760 var parsedURL = new WebInspector.ParsedURL(origin);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 row.createChild("div").textContent = key; 936 row.createChild("div").textContent = key;
938 937
939 var valueDiv = row.createChild("div"); 938 var valueDiv = row.createChild("div");
940 if (typeof value === "string") { 939 if (typeof value === "string") {
941 valueDiv.textContent = value; 940 valueDiv.textContent = value;
942 } else { 941 } else {
943 valueDiv.appendChild(value); 942 valueDiv.appendChild(value);
944 } 943 }
945 } 944 }
946 } 945 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/security/originView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698