Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Crash when downloading a large data URI #5217

@MarcLeclair

Description

@MarcLeclair

Steps to reproduce

  1. Launch sample-browser.
  2. Open a website that redirects using a data URI. The one I used was: https://mars.nasa.gov/participate/send-your-name/mars2020/certificate/599173796266
  3. Click download

Expected behavior

If the Data URI is an image, a dialogue should pop up to ask the user if they want to download the image.

Actual behavior

Application crashes with a TransactionTooLargeException

Device information

  • Android device: Google Pixel 3(Android 10).

Notes

The application redirects because ( from what I can gather), we check for the "new" url hostname versus our session, which in this case will be different. From there, we redirect with an intent. In the example above, the picture on the NASA website is ~1.2MB which will lead to the application trying to send an intent that's too big (data parcel size 3473380 bytes in my case).

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

Labels

<download>Component: feature-download🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions