DescriptionRead the bare minimum of data from the WebAPK launch intent.
The launch intent for WebappLauncherActivity may be sent by any app, not
necessarily Chrome or a WebAPK. For WebAPKs (unlike non-WebAPK web apps) the id
is predictable. For WebAPKs we verify that the package name in the intent
matches an installed WebAPK and that the start URL falls within the WebAPK's
scope. We do not validate any of the other data in the launch intent.
Prior to this CL, by customizing the launch intent a third party APK was able
to launch a WebAPK with an arbirtrary name and icon on the splash screen.
This CL reduces the amount of data we extract from the WebappLauncherActivity
launch intent to the minimum possible. We still read from the launch intent the
following data:
- WebAPK package name
- URL to navigate the WebAPK to. We cannot use the WebAPK's start URL because
the WebAPK can be launched at any URL within the WebAPK scope via deep linking.
We do verify that the URL in the intent is within the WebAPK scope.
- The reason the WebAPK got launched (e.g. launched from a notification). This
is used for UMA only.
BUG=651640
Committed: https://crrev.com/0b7c2979c1f64fbfb6ce5967a1424890b86579f1
Cr-Commit-Position: refs/heads/master@{#425093}
Patch Set 1 : Merge branch 'startup_crash' into security #
Total comments: 7
Patch Set 2 : Merge branch 'startup_crash0' into security #Patch Set 3 : Merge branch 'startup_crash0' into security #
Total comments: 1
Messages
Total messages: 25 (12 generated)
|