Open Bug 1877407 Opened 4 months ago Updated 3 months ago

Broken support for file upload/download in the extension settings page

Categories

(Fenix :: WebExtensions, defect)

Firefox 122
All
Android
defect

Tracking

(firefox123 affected, firefox124 affected)

Tracking Status
firefox123 --- affected
firefox124 --- affected

People

(Reporter: dominik.lubanski, Unassigned)

Details

(Whiteboard: [qa-triaged])

Attachments

(1 file)

Steps to reproduce:

  1. Open the settings page of the extension (Ghostery)
  2. Use import/export settings feature of the extension

Actual results:

The extension settings window has broken support for the File API and download feature of the anchors:

  • Anchors with download attribute don't work (removing the attribute fallbacks to default behavior - opens up the file in the window - showing the content)
  • browser.downloads.download() action hangs in a pending state
  • <input type="file"> never gets a change event when the file is selected

Expected results:

The File API, browser.downloads, and anchor download attribute should be supported correctly.

The severity field is not set for this bug.
:zmckenney, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(zmckenney)

Thank you for the report!

I'm not sure I understood correctly the issue, but I've attached a screenshot that shows that the settings were "successfully" exported. However, there is no exported settings file in the Downloads folder of the app, or of the device.
Dominik, is this the issue you're encountering?

Tested o Firefox for Android 123.0, and on Nightly 124.0a1, with a Samsung Galaxy S24 (Android 14) device.

Flags: needinfo?(zmckenney) → needinfo?(dominik.lubanski)
Severity: -- → S3
Whiteboard: [qa-triaged]

Yes, the UI shows the successful message, as under the hood the code just programmatically clicks the anchor with the download attribute - and it assumes, that this action succeeded. However, the file is not downloaded, as I mentioned in the steps, the File API is broken for pages in the extension context.

Flags: needinfo?(dominik.lubanski)

Thank you!
I'll confirm the ticket.

Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: