Closed Bug 1754499 Opened 3 years ago Closed 3 years ago

Load PDF web content in a tab using pdf.js

Categories

(GeckoView :: PDF Viewer, enhancement, P1)

Unspecified
All
enhancement

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: agi, Assigned: calixte)

References

(Regressed 1 open bug)

Details

(Whiteboard: [geckoview:2022h2?])

Attachments

(1 file)

It would be nice if GeckoView apps could load PDF files in a tab, similarly to what happens on Desktop with pdf.js.

Brendan, I remember asking you about this a few years ago :-) just curious if anything came to mind as to why we wouldn't be able to adapt Desktop's code on Mobile to do this (or anything else you might want to add really).

Flags: needinfo?(bdahl)

I was just discussing this with Marco earlier. There are a few things that come to mind that would be good to fix:

  • current UI is focused on larger devices. we probably want a simplified version for mobile
  • pinch to zoom was not working well (maybe that's fixed)
  • add a path for saving pdfs on android (this may also be fine now)
Flags: needinfo?(bdahl)
Severity: -- → S3
Priority: -- → P2

Fenix would like this delivered in H1 2022. Proposed for 100 or 101.

Amedyne, is the priority for Fenix still correct? We obviously too late for 101.

Flags: needinfo?(amoya)
Whiteboard: [geckoview:2022h2?]
Flags: needinfo?(amoya)
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: P2 → P1

Kevin recommends we land this Nightly-only first to get some user testing.

Do we want to use PDF.js in Focus?

Summary: Load PDF files in a tab using pdf.js → Load PDF web content in a tab using pdf.js

Just add the minimal stuff in order to be able to view a pdf in using pdf.js
(whatever the content disposition is).
There are still some things to plug (e.g. find stuff), we must change the UI
and add support for pinch-to-zoom, hence we set the pref pdfjs.disabled to true.

Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1531334c19a6 Add pdf.js in GeckoView r=geckoview-reviewers,pdfjs-reviewers,marco,m_kato
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
See Also: → 1803207
Regressions: 1803207
No longer regressions: 1803207
Component: General → PDF Viewer
Regressions: 1917589
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: