| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 if (request) { | 290 if (request) { |
| 291 var origin = WebInspector.ParsedURL.extractOrigin(request.url); | 291 var origin = WebInspector.ParsedURL.extractOrigin(request.url); |
| 292 this._sidebarTree.setMainOrigin(origin); | 292 this._sidebarTree.setMainOrigin(origin); |
| 293 this._processRequest(request); | 293 this._processRequest(request); |
| 294 } | 294 } |
| 295 }, | 295 }, |
| 296 | 296 |
| 297 _onInterstitialShown: function() | 297 _onInterstitialShown: function() |
| 298 { | 298 { |
| 299 // The panel might have been displaying the origin view on the |
| 300 // previously loaded page. When showing an interstitial, switch |
| 301 // back to the Overview view. |
| 302 this.selectAndSwitchToMainView(); |
| 299 this._sidebarTree.toggleOriginsList(true /* hidden */); | 303 this._sidebarTree.toggleOriginsList(true /* hidden */); |
| 300 }, | 304 }, |
| 301 | 305 |
| 302 _onInterstitialHidden: function() | 306 _onInterstitialHidden: function() |
| 303 { | 307 { |
| 304 this._sidebarTree.toggleOriginsList(false /* hidden */); | 308 this._sidebarTree.toggleOriginsList(false /* hidden */); |
| 305 }, | 309 }, |
| 306 | 310 |
| 307 __proto__: WebInspector.PanelWithSidebar.prototype | 311 __proto__: WebInspector.PanelWithSidebar.prototype |
| 308 } | 312 } |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 row.createChild("div").textContent = key; | 987 row.createChild("div").textContent = key; |
| 984 | 988 |
| 985 var valueDiv = row.createChild("div"); | 989 var valueDiv = row.createChild("div"); |
| 986 if (typeof value === "string") { | 990 if (typeof value === "string") { |
| 987 valueDiv.textContent = value; | 991 valueDiv.textContent = value; |
| 988 } else { | 992 } else { |
| 989 valueDiv.appendChild(value); | 993 valueDiv.appendChild(value); |
| 990 } | 994 } |
| 991 } | 995 } |
| 992 } | 996 } |
| OLD | NEW |