[PaymentHandler] Fix URI Syntax Exception
Component: the toolbar of the Bottom-sheet based Payment Handler UI. Description: the toolbar instantiates a URI with a shortened (ripped off the scheme and keep only the origin) URL. However, the URI instantiation should take a URL that has a scheme, otherwise, throws URISyntaxException. This is an insidious bug because a domain url like "www.google.com:1234" wouldn't cause exception because it would be accepted as a scheme. Before change: when the toolbar takes a URL that is "IP + port" (no scheme), the Payment Handler UI would fail with a URISyntaxException. An example of url is "192.168.1.1:1234". After change: a URL "IP + port" (no scheme) wouldn't cause URISyntaxException any more. Change: after shortening a URI string, no longer instantiate a URI from the shortened string. Bug: 999196 Change-Id: If7cb8e0eff6bc24d973785f9d60b0e02666836e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1988513Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#728632}
Showing
Please register or sign in to comment