Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

[Bug Report] Incorrect Downloaded File Snackbar Intent

  • 1 回覆
  • 1 有這個問題
  • 17 次檢視
  • 最近回覆由 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

所有回覆 (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?