[Android WebAPK Refactor] Send activity name in intent only for share targets 8/X
This CL changes the WebAPK to send the name of the launching activity only for
share targets. The goal of this CL are:
- In an upcoming CL I will send an intent to Chrome to relaunch the WebAPK. This CL removes the need
to send the action which launched the WebAPK to Chrome. (ACTION_SEND can be assumed if the
org.chromium.webapk.selected_share_target_activity_class_name extra is set.)
- Add a layer of defense in depth for POST share targets. An incoming intent is for a POST share
target if:
1) org.chromium.webapk.selected_share_target_activity_class_name is set on the intent
2) The <meta-data> for the passed in activity has a org.chromium.webapk.shell_apk.shareEnctype
key.
BUG=817263, 885313
Change-Id: I3667d257f711f1e474a44e3fd9aaf5c41552f30c
Reviewed-on: https://chromium-review.googlesource.com/c/1307075
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Reviewed-by:
Xi Han <hanxi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604656}
Showing
Please register or sign in to comment