Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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}
- Loading branch information