Fixed crash caused from invalid URLs in the PageInfo dialog
Cleaned up WebsiteSettingsPopup::updatePageDetails in the PageInfo dialog and fixed a crash from invalid URLs. When a malformed URL is accessed, the PageInfo dialog will still display the URL, but won't apply any custom coloring (this only applies to well-formed URLs). TEST=Visit a malformed URL, such as 'data:html,foo<script', and open the PageInfo dialog by long-pressing on the URL. The URL should be displayed (but not colored), and Chrome should not crash. BUG=427566 Review URL: https://codereview.chromium.org/690343003 Cr-Commit-Position: refs/heads/master@{#302743}
Showing
This diff is collapsed.
Please register or sign in to comment