为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

[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?