Commit b25aacb6 authored by Peter E Conn's avatar Peter E Conn Committed by Commit Bot

🤝 Protect against null scheme in TrustedWebActivityClient.

Bug: 988068, 984945
Change-Id: Ia095904e4d07ded1814af0d35ed2cff3c50b6946
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1736669Reviewed-by: default avatarMichael van Ouwerkerk <mvanouwerkerk@chromium.org>
Commit-Queue: Peter Conn <peconn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683977}
parent fe294966
...@@ -194,7 +194,7 @@ public class TrustedWebActivityClient { ...@@ -194,7 +194,7 @@ public class TrustedWebActivityClient {
Origin origin = new Origin(url); Origin origin = new Origin(url);
// Trusted Web Activities only work with https so we can shortcut here. // Trusted Web Activities only work with https so we can shortcut here.
if (!origin.uri().getScheme().equals(UrlConstants.HTTPS_SCHEME)) return null; if (!UrlConstants.HTTPS_SCHEME.equals(origin.uri().getScheme())) return null;
Set<String> verifiedPackages = TrustedWebActivityServiceConnectionManager Set<String> verifiedPackages = TrustedWebActivityServiceConnectionManager
.getVerifiedPackages(appContext, origin.toString()); .getVerifiedPackages(appContext, origin.toString());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment