Closed Bug 1796482 Opened 2 years ago Closed 2 years ago

Allow for notifying consumers on unsuccessful Save to PDF requests

Categories

(Fenix :: Browser Engine, enhancement, P2)

All
Android
enhancement

Tracking

(firefox108 fixed)

RESOLVED FIXED
Tracking Status
firefox108 --- fixed

People

(Reporter: cpeterson, Assigned: amejia)

References

Details

(Whiteboard: [geckoview:m108])

Attachments

(4 files)

63 bytes, text/x-github-pull-request
Details | Review
57 bytes, text/x-github-pull-request
Details | Review
57 bytes, text/x-github-pull-request
Details | Review
57 bytes, text/x-github-pull-request
Details | Review

From github: https://github.com/mozilla-mobile/android-components/issues/12642.

In at least two cases in in the GeckEngine.requestPdfToDownload, we can unsuccessfully return a PDF. Our current error handling in https://github.com/mozilla-mobile/android-components/pull/12277 is to silently fail, but this might not be helpful to users if they are expecting to see a PDF.

We should come up with a solution, possibly similar to the Download State one, for handling the error cases so that we can notify consumers.

cc: @Amejia481 , @ohall-m

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

Arturo, FYI: this bug was moved from A-C's GitHub issue tracker to Bugzilla. I'm assigning this A-C bug to you because the GitHub issue was assigned to you: https://github.com/mozilla-mobile/android-components/issues/12642

Do we need to fix this bug in the same Fenix version that ships Save as PDF? Is that version 107 or 108?

Assignee: nobody → amejiamarmol
Blocks: 1780639
Severity: -- → N/A
Type: defect → enhancement
Depends on: 1784554
Flags: needinfo?(amejiamarmol)
Priority: -- → P2

Arturo, FYI: this bug was moved from A-C's GitHub issue tracker to Bugzilla. I'm assigning this A-C bug to you because the GitHub issue was assigned to you: https://github.com/mozilla-mobile/android-components/issues/12642

Thanks no problem!

Do we need to fix this bug in the same Fenix version that ships Save as PDF? Is that version 107 or 108?

Yes, we need to ship the same version of AC and Fenix, but the PDF feature is still only in nightly behind a feature flag at the moment.
It was introduced in v107.0b1, in case we would like to uplift the feature to that version, we will need to uplift the AC parts and remove the feature flag.

Flags: needinfo?(amejiamarmol)
Whiteboard: [geckoview:m108]
Attached file GitHub Pull Request
Attached file GitHub Pull Request
Attached file GitHub Pull Request
Attached file GitHub Pull Request

We don't need to uplift this fix to Beta 107.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: