New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 675460 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Clipdata passed on share intent causes ClipData.coerceToText() to throw nullPointerException

Reported by jasondon...@gmail.com, Dec 18 2016

Issue description

Steps to reproduce the problem:
1. Share any content from chrome to an Android app that uses ClipData.coerceToText()
2. In the Android app activity that handles the share intent, pull the first clip item from the intent passed by chrome and pass it to coerceToText()
3. Android app crashes with a nullpointerexception

What is the expected behavior?
CoerceToText() successfully returns a text representation of the clip item data passed int the intent from Chrome.

What went wrong?
The change to ChromeFileProvider that is rolling out as part of Chrome 55 (https://chromium.googlesource.com/chromium/src.git/+/lkcr/chrome/android/java/src/org/chromium/chrome/browser/util/ChromeFileProvider.java) breaks fundamental assumptions in Android's ClipData.coerceToText().  If you take the clipData from the share Intent that Chrome 55 produces and pass the first item contained in the clipData to coerceToText() a NullPointerException will be thrown when coerceToText() attempts to create an InputStream from the provided URI.  The URI provided in this same manner from Chrome 54 works fine.  This is a breaking change to Android apps that rely on this functionality.

Did this work before? Yes Any 54 version

Chrome version: 55.0.2883.91  Channel: stable
OS Version: Any
Flash Version:
 
Components: Internals>PlatformIntegration Mobile>Intents
Cc: msrchandra@chromium.org
Labels: Needs-triage-Mobile Needs-Feedback Triaged-Mobile
@jasondonmoyer -- Thank You for the report.
Could you please upgrade to latest Chrome# 62.0.3202.84 and provide the latest behavior, if yes provide us with the screen cast which would help us in triaging the issue further.
Thanks in Advance. 
Status: WontFix (was: Unconfirmed)
***Bulk Edit***

There is no updates in the past few months, closing now. Feel free to reopen if needed.

Sign in to add a comment