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

Issue 2756983002: [DevTools] Fallback to MainFrameNavigated event url in Security panel (Closed)

Created:
3 years, 9 months ago by elawrence
Modified:
3 years, 9 months ago
Reviewers:
lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Fallback to MainFrameNavigated event url in Security panel If a HTTPS connection is blocked for security reasons, an interstitial is presented and the Network Manager does not raise a ResponseReceived event. Previously, the lack of a matching ResponseReceived event would prevent the MainFrameNavigated event from correctly setting the "Main Origin" for the sidebar. With this CL, if the main navigation request was not previously captured by the ResponseReceived event, we will instead compute the Main Origin by looking at the URL in the MainFrameNavigated event itself. BUG=669309 TEST=blink_layouttests. Alternatively, open Security Panel. Navigate through https://expired.badssl.com/ interstitial. Verify Main Origin appears in sidebar. Review-Url: https://codereview.chromium.org/2756983002 Cr-Commit-Position: refs/heads/master@{#458639} Committed: https://chromium.googlesource.com/chromium/src/+/b37aaf2370cd187b34d4853e85ed6ed58b3665f9

Patch Set 1 #

Patch Set 2 : Add layout test #

Total comments: 2

Patch Set 3 : Rebase, change const to let #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/inspector/security/main-origin-assigned-despite-request-missing.html View 1 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/security/main-origin-assigned-despite-request-missing-expected.txt View 1 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js View 1 2 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
elawrence
PTAL? This small tweak to the Security panel ensures that we select the proper Main ...
3 years, 9 months ago (2017-03-20 14:55:45 UTC) #2
lushnikov
lgtm https://codereview.chromium.org/2756983002/diff/20001/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/2756983002/diff/20001/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js#newcode353 third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js:353: const origin = Common.ParsedURL.extractOrigin(request ? request.url() : frame.url); ...
3 years, 9 months ago (2017-03-21 18:26:36 UTC) #5
elawrence
Thanks! > nit: we don't use 'const' since it causes V8 deoptimization RE: The ban ...
3 years, 9 months ago (2017-03-21 18:44:55 UTC) #6
lushnikov
On 2017/03/21 18:44:55, elawrence wrote: > Thanks! > > > nit: we don't use 'const' ...
3 years, 9 months ago (2017-03-21 23:33:04 UTC) #7
elawrence
thanks! https://codereview.chromium.org/2756983002/diff/20001/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/2756983002/diff/20001/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js#newcode353 third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js:353: const origin = Common.ParsedURL.extractOrigin(request ? request.url() : frame.url); ...
3 years, 9 months ago (2017-03-22 01:04:41 UTC) #8
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/2756983002/40001
3 years, 9 months ago (2017-03-22 01:06:03 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 9 months ago (2017-03-22 03:07:33 UTC) #13
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/2756983002/40001
3 years, 9 months ago (2017-03-22 03:45:07 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 05:29:02 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b37aaf2370cd187b34d4853e85ed...

Powered by Google App Engine
This is Rietveld 408576698