This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Cari Bantuan

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Pelajari Lebih Lanjut

[Bug Report] Incorrect Downloaded File Snackbar Intent

  • 1 balas
  • 1 memiliki masalah ini
  • 2 kunjungan
  • Balasan terakhir oleh Paul

more options

Hi,

Firefox for Android 68.9.0. Android 9 also replicated on Fennec F-Droid on Galaxy S7 with Android 8.0.0


I'm working on an open source app, and we're getting reports that Firefox's Snackbar implementation for opening a downloaded file appears broken: https://github.com/ankidroid/Anki-Android/issues/5374#issuecomment-638112300 . This is fairly heavily battle-tested code, I don't believe this is our bug, and I've reproduced the issue, but I'm happy to be mistaken.

Steps (fails)

  • Scroll to the bottom of the page: https://ankiweb.net/shared/info/920300037
  • Download
  • Select "Open" in the snackbar
  • A significant number of apps appear in the screen
  • Select our application
  • We receive an Intent with no data. The extra is "com.android.browser.application_id"

`Intent { act=android.intent.action.VIEW flg=0x3000000 hwFlg=0x400 cmp=com.ichi2.anki/.Reviewer (has extras) } `

Steps (works as expected)

  • Scroll to the bottom of the page: https://ankiweb.net/shared/info/920300037
  • Download
  • Select the Android Notification Firefox places in the Notification Drawer
  • A small number of apps appear (our app, file pickers, and zip openers).
  • Select our application
  • We receive an Intent with data containing the file (happy days!):

`Intent { act=android.intent.action.VIEW dat=content://org.mozilla.firefox.fileprovider/root/storage/emulated/0/Download/WSET_Level_1_Study(14).apkg flg=0x4000000 cmp=com.ichi2.anki/.DeckPicker }`

Here is the relevant lines of our Manifest, in case we're doing something silly: https://github.com/ankidroid/Anki-Android/blob/7d83fd251e059269fd5832fd6e30c4fba3a2c95d/AnkiDroid/src/main/AndroidManifest.xml#L104-L172

I don't think you'll need the app to test, but: https://f-droid.org/en/packages/com.ichi2.anki/ or https://play.google.com/store/apps/details?id=com.ichi2.anki or https://github.com/ankidroid/Anki-Android/releases/tag/v2.10.4

Thanks for your time,

David

Hi, Firefox for Android 68.9.0. Android 9 also replicated on Fennec F-Droid on Galaxy S7 with Android 8.0.0 ---- I'm working on an open source app, and we're getting reports that Firefox's Snackbar implementation for opening a downloaded file appears broken: https://github.com/ankidroid/Anki-Android/issues/5374#issuecomment-638112300 . This is fairly heavily battle-tested code, I don't believe this is our bug, and I've reproduced the issue, but I'm happy to be mistaken. '''Steps (fails)''' * Scroll to the bottom of the page: https://ankiweb.net/shared/info/920300037 * Download * Select "Open" in the snackbar * A significant number of apps appear in the screen * Select our application * We receive an Intent with no data. The extra is "com.android.browser.application_id" `Intent { act=android.intent.action.VIEW flg=0x3000000 hwFlg=0x400 cmp=com.ichi2.anki/.Reviewer (has extras) } ` '''Steps (works as expected)''' * Scroll to the bottom of the page: https://ankiweb.net/shared/info/920300037 * Download * Select the Android Notification Firefox places in the Notification Drawer * A small number of apps appear (our app, file pickers, and zip openers). * Select our application * We receive an Intent with data containing the file (happy days!): `Intent { act=android.intent.action.VIEW dat=content://org.mozilla.firefox.fileprovider/root/storage/emulated/0/Download/WSET_Level_1_Study(14).apkg flg=0x4000000 cmp=com.ichi2.anki/.DeckPicker }` Here is the relevant lines of our Manifest, in case we're doing something silly: https://github.com/ankidroid/Anki-Android/blob/7d83fd251e059269fd5832fd6e30c4fba3a2c95d/AnkiDroid/src/main/AndroidManifest.xml#L104-L172 I don't think you'll need the app to test, but: https://f-droid.org/en/packages/com.ichi2.anki/ or https://play.google.com/store/apps/details?id=com.ichi2.anki or https://github.com/ankidroid/Anki-Android/releases/tag/v2.10.4 Thanks for your time, David

Semua Balasan (1)

more options

Hi David

Thank you for your question.

The best thing to do if you have a bug to file is to report it at https://bugzilla.mozilla.org/home. You will see progress reports on the issue and have the opportunity to provide more information.

However...it is worth considering that our focus at the moment is on Firefox Preview. Does this issue still occur with Firefox Preview installed?