Closed Bug 1804467 Opened 1 year ago Closed 1 year ago

Implement GeckoView Print API

Categories

(GeckoView :: General, enhancement, P1)

All
Android
enhancement

Tracking

(firefox110 wontfix, firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox110 --- wontfix
firefox111 --- fixed

People

(Reporter: olivia, Assigned: olivia)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [android-print][geckoview:m110][geckoview:m111])

Attachments

(1 file)

GeckoView needs a print API that can be connected into window.print. The API should accept a PDF file or PDF InputStream for printing. The API could also be calling saveToPDF first and printing that InputStream.

Related Fennec printing code that may be helpful.

Severity: -- → N/A
Priority: -- → P1
Whiteboard: [geckoview:m110]
Depends on: 1806191
Blocks: 1809915
Whiteboard: [geckoview:m110] → [geckoview:m110][geckoview:m111]
Whiteboard: [geckoview:m110][geckoview:m111] → [android-print][geckoview:m110][geckoview:m111]
Rank: 110

This bug adds a print delegate interface on GeckoSession and a print
delegate implementation on GeckoView. The print delegate needs access
to an Activity context. It also adds a default
GeckoViewPrintDocumentAdapter for printing documents using Android. A
sample implementation was also added to GeckoView Example.

Depends on D166394

Attachment #9312301 - Attachment description: WIP: Bug 1804467 - GeckoView Print API → Bug 1804467 - GeckoView Print API
Pushed by ohall@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/29b97320d9c2
GeckoView Print API r=geckoview-reviewers,calu,owlish
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: