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

Issue 2522733002: Do not prompt for reload when security panel is opened on an interstitial (Closed)

Created:
4 years, 1 month ago by estark
Modified:
4 years ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, jam, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, darin-cc_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not prompt for reload when security panel is opened on an interstitial Because interstitials are not real navigations, the security panel sidebar doesn't work properly for an interstitial, and also doesn't provide that much more useful information than what's shown in the Overview view. For this reason, we were already hiding the origins sidebar when you navigate to an interstitial while the security panel is open. This CL extends that behavior to when you open DevTools while an interstitial is already showing. As a drive-by, this CL also fixes a bug where requests that finished after the interstitial was shown would still show up in the sidebar. Also note that this CL only partially addresses the linked bug. This CL removes the confusing/useless prompt to reload, but doesn't fix the fact that refreshing on an interstitial does weird things (sends you back to the previous page). The latter weirdness has been split into https://crbug.com/669316. BUG=637299 TEST=Navigate to https://expired.badssl.com. Open the DevTools security panel. Observe that there is no prompt to reload in the sidebar. Committed: https://crrev.com/f8d89eaf15d68b685f1d1e0503a2057df1082a75 Cr-Commit-Position: refs/heads/master@{#434887}

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove stray console.log #

Total comments: 1

Patch Set 3 : dgozman suggestion #

Total comments: 2

Patch Set 4 : remove isInterstitialShowing setter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -0 lines) Patch
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/page_handler.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/interstitial-sidebar.html View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
estark
dgozman, can you please review? https://codereview.chromium.org/2522733002/diff/1/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js File third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js (right): https://codereview.chromium.org/2522733002/diff/1/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js#newcode496 third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js:496: newParent.hidden = this._originsAreHidden; This ...
4 years, 1 month ago (2016-11-21 22:42:06 UTC) #8
dgozman
https://codereview.chromium.org/2522733002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2522733002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode906 third_party/WebKit/Source/core/inspector/browser_protocol.json:906: { "name": "interstitialIsShowing", "type": "boolean", "description": "True if an ...
4 years, 1 month ago (2016-11-22 21:44:38 UTC) #11
estark
On 2016/11/22 21:44:38, dgozman wrote: > https://codereview.chromium.org/2522733002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json > File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): > > https://codereview.chromium.org/2522733002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode906 > ...
4 years ago (2016-11-22 23:04:54 UTC) #12
dgozman
On 2016/11/22 23:04:54, estark wrote: > On 2016/11/22 21:44:38, dgozman wrote: > > > https://codereview.chromium.org/2522733002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json ...
4 years ago (2016-11-23 01:19:13 UTC) #13
estark
On 2016/11/23 01:19:13, dgozman wrote: > On 2016/11/22 23:04:54, estark wrote: > > On 2016/11/22 ...
4 years ago (2016-11-28 22:59:51 UTC) #14
dgozman
On 2016/11/28 22:59:51, estark wrote: > On 2016/11/23 01:19:13, dgozman wrote: > > On 2016/11/22 ...
4 years ago (2016-11-29 00:09:32 UTC) #15
estark
On 2016/11/29 00:09:32, dgozman wrote: > On 2016/11/28 22:59:51, estark wrote: > > On 2016/11/23 ...
4 years ago (2016-11-29 01:49:36 UTC) #19
dgozman
Nice work! lgtm https://codereview.chromium.org/2522733002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js (right): https://codereview.chromium.org/2522733002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js#newcode877 third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js:877: this._resourceTreeModel.setIsInterstitialShowing(true); Let's just assign directly to ...
4 years ago (2016-11-29 02:07:23 UTC) #20
estark
Thanks dgozman! https://codereview.chromium.org/2522733002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js (right): https://codereview.chromium.org/2522733002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js#newcode877 third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js:877: this._resourceTreeModel.setIsInterstitialShowing(true); On 2016/11/29 02:07:23, dgozman wrote: > ...
4 years ago (2016-11-29 02:11:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2522733002/60001
4 years ago (2016-11-29 02:12:41 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-29 04:17:06 UTC) #27
commit-bot: I haz the power
4 years ago (2016-11-29 04:22:24 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f8d89eaf15d68b685f1d1e0503a2057df1082a75
Cr-Commit-Position: refs/heads/master@{#434887}

Powered by Google App Engine
This is Rietveld 408576698