| OLD | NEW |
| 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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 WebInspector.SecurityOriginView = function(panel, origin, originState) | 734 WebInspector.SecurityOriginView = function(panel, origin, originState) |
| 735 { | 735 { |
| 736 this._panel = panel; | 736 this._panel = panel; |
| 737 WebInspector.VBox.call(this); | 737 WebInspector.VBox.call(this); |
| 738 this.setMinimumSize(200, 100); | 738 this.setMinimumSize(200, 100); |
| 739 | 739 |
| 740 this.element.classList.add("security-origin-view"); | 740 this.element.classList.add("security-origin-view"); |
| 741 this.registerRequiredCSS("security/originView.css"); | 741 this.registerRequiredCSS("security/originView.css"); |
| 742 this.registerRequiredCSS("security/lockIcon.css"); | 742 this.registerRequiredCSS("security/lockIcon.css"); |
| 743 | 743 |
| 744 var titleSection = this.element.createChild("div", "origin-view-section titl
e-section"); | 744 var titleSection = this.element.createChild("div", "title-section"); |
| 745 titleSection.createChild("div", "origin-view-title").textContent = WebInspec
tor.UIString("Origin"); | 745 titleSection.createChild("div", "origin-view-title").textContent = WebInspec
tor.UIString("Origin"); |
| 746 var originDisplay = titleSection.createChild("div", "origin-display"); | 746 var originDisplay = titleSection.createChild("div", "origin-display"); |
| 747 this._originLockIcon = originDisplay.createChild("span", "security-property"
); | 747 this._originLockIcon = originDisplay.createChild("span", "security-property"
); |
| 748 this._originLockIcon.classList.add("security-property-" + originState.securi
tyState); | 748 this._originLockIcon.classList.add("security-property-" + originState.securi
tyState); |
| 749 // TODO(lgarron): Highlight the origin scheme. https://crbug.com/523589 | 749 // TODO(lgarron): Highlight the origin scheme. https://crbug.com/523589 |
| 750 originDisplay.createChild("span", "origin").textContent = origin; | 750 originDisplay.createChild("span", "origin").textContent = origin; |
| 751 var originNetworkLink = originDisplay.createChild("div", "link"); | 751 var originNetworkLink = titleSection.createChild("div", "link"); |
| 752 originNetworkLink.textContent = WebInspector.UIString("View requests in Netw
ork Panel"); | 752 originNetworkLink.textContent = WebInspector.UIString("View requests in Netw
ork Panel"); |
| 753 function showOriginRequestsInNetworkPanel() | 753 function showOriginRequestsInNetworkPanel() |
| 754 { | 754 { |
| 755 var parsedURL = new WebInspector.ParsedURL(origin); | 755 var parsedURL = new WebInspector.ParsedURL(origin); |
| 756 WebInspector.NetworkPanel.revealAndFilter([ | 756 WebInspector.NetworkPanel.revealAndFilter([ |
| 757 { | 757 { |
| 758 filterType: WebInspector.NetworkLogView.FilterType.Domain, | 758 filterType: WebInspector.NetworkLogView.FilterType.Domain, |
| 759 filterValue: parsedURL.host | 759 filterValue: parsedURL.host |
| 760 }, | 760 }, |
| 761 { | 761 { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 row.createChild("div").textContent = key; | 931 row.createChild("div").textContent = key; |
| 932 | 932 |
| 933 var valueDiv = row.createChild("div"); | 933 var valueDiv = row.createChild("div"); |
| 934 if (typeof value === "string") { | 934 if (typeof value === "string") { |
| 935 valueDiv.textContent = value; | 935 valueDiv.textContent = value; |
| 936 } else { | 936 } else { |
| 937 valueDiv.appendChild(value); | 937 valueDiv.appendChild(value); |
| 938 } | 938 } |
| 939 } | 939 } |
| 940 } | 940 } |
| OLD | NEW |