Transfer, rather than copy, PDF-data to the viewer
Categories
(Firefox :: PDF Viewer, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: Snuffleupagus, Assigned: Snuffleupagus)
Details
Attachments
(1 file)
In order to reduce overall memory usage, we should transfer PDF-data from the platform code to the PDF Viewer.
Assignee | ||
Comment 1•1 year ago
|
||
In order to reduce overall memory usage, we should transfer PDF-data from the platform code to the PDF Viewer.
Comment 2•1 year ago
|
||
:Snuffleupagus, are you able to run mach try
?
Comment 3•1 year ago
|
||
If not you can ask for Level 1 access: https://firefox-source-docs.mozilla.org/tools/try/configuration.html#getting-level-1-commit-access
Assignee | ||
Comment 4•1 year ago
|
||
(In reply to Calixte Denizet (:calixte) from comment #2)
:Snuffleupagus, are you able to run
mach try
?
Unfortunately not, since I don't have access.
(In reply to Calixte Denizet (:calixte) from comment #3)
If not you can ask for Level 1 access: https://firefox-source-docs.mozilla.org/tools/try/configuration.html#getting-level-1-commit-access
Given that I'm submitting so few mozilla-central patches, I'm not sure if it's really worth it. (Every time that I do, I usually need to refer back to the documentation for how to do things...)
Comment 5•1 year ago
|
||
Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20bb31347ce4 Transfer, rather than copy, PDF-data to the viewer. r=pdfjs-reviewers,robwu
Comment 7•1 year ago
•
|
||
Backed out for causing mochitest failures
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | dom/base/test/test_pdf_print.html | Test timed out. -
Assignee | ||
Comment 8•1 year ago
|
||
TL;DR It seems that using null
as the default value for the transfers
parameter, in the postMessage
-calls, doesn't work in some(?) of the test-suites; however using undefined
instead seems to work.
The error comes from https://treeherder.mozilla.org/logviewer?job_id=403057239&repo=autoland&lineNumber=14240 and happens in the https://searchfox.org/mozilla-central/source/dom/base/test/test_pdf_print.html test-case.
As can be seen there that test-case opens nonsensical "PDF documents", and in particular this line causes the error.
Strangely enough directly loading data:application/pdf,
in the browser, with the original patch applied, works fine so it seems to be something "special" about the test-suite in use.
Locally this test-case does work with the updated patch, although I don't at all understand why it fixes things; however it's probably the best I can do here.
Comment 9•1 year ago
•
|
||
The error comes from WindowBinding.cpp which means that null
is not a valid argument hence your fix is the correct one.
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52f9e6382dce Transfer, rather than copy, PDF-data to the viewer. r=pdfjs-reviewers,robwu,calixte
Comment 12•1 year ago
|
||
bugherder |
Description
•