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

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

Issue 2244233008: DevTools security panel: switch to overview on interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert accidental change Created 4 years, 4 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 | « third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial-expected.txt ('k') | no next file » | 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698