Closed
Bug 2064727
Opened 3 months ago
Closed 1 month ago
Share pulls network bytes, not PDF bytes which cause slow speeds and issues when the PDF has been edited
Categories
(GeckoView :: PDF Viewer, defect)
Tracking
(firefox159 fixed)
RESOLVED
FIXED
159 Branch
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: olivia, Assigned: olivia)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][group6])
Attachments
(1 external file)
STR:
- Downgrade the network in some way
- In an emulator, turn off WiFi, go to settings, switch to LTE with poor network
- Visit a website PDF https://www.robertkaufman.com/assets/pdf/KonaQuarterlies_Cappucino.pdf
- The latency of opening the share sheet can sometimes be quite high since it is rerequesting the PDF
Observe:
Share sheet can sometimes take a while to populate.
I suspect we can optimize this by ferrying the bytes directly from the PDF instead of from the network again, which appears to be the current case.
The changes in bug 2064162 might be interesting here too.
Updated•3 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Upgrading the status of this one to bug, because it also prevents users from getting the edit.
Type: task → defect
Summary: [Optimization] Sharing a PDF can take a while under poor network conditions → Share pulls network bytes, not PDF bytes which cause slow speeds and issues when the PDF has been edited
| Assignee | ||
Updated•2 months ago
|
Assignee: nobody → ohall
Comment 2•2 months ago
|
||
The severity field is not set for this bug.
:olivia, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(ohall)
| Assignee | ||
Updated•2 months ago
|
Severity: N/A → S3
Flags: needinfo?(ohall)
| Assignee | ||
Comment 3•2 months ago
|
||
- The current architecture does a network request to get the PDF bytes on a displayed PDF
on a remote resource or a media request to get the PDF bytes on a local resource. - The new PDF viewer toolbar update makes adding annotations to the PDF a possibility.
- The old methods do not grab the new bytes, so we should ask the PDF directly for the information.
This patch:
- Adds
requestPdfToShareto get the bytes as a resource from the PDF. - Adds a new
DirectResourceas aShareResourceStateto accomodate situations where we already have the bytes. - Adjusts
PdfShareActionExtto create aDirectResourceand use the prior method as a fallback, in case it were ever to fail.
Pushed by ohall@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/2c386bafed22
https://hg.mozilla.org/integration/autoland/rev/64ddd2684afc
Updating Sharing a PDF to use PDF Viewer response r=android-reviewers,tthibaud
Comment 5•1 month ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 1 month ago
status-firefox159:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•