pdf.js missing search bar icons
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox114 | --- | wontfix |
| firefox115 | --- | verified |
| firefox116 | --- | verified |
People
(Reporter: yan12125, Assigned: Snuffleupagus)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
|
26.14 KB,
image/png
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
|
13.34 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Steps to reproduce:
Open a random PDF and search something with Ctrl+F
Actual results:
Icons for "Previous" and "Next" buttons are missing
Expected results:
Those buttons have icons
| Reporter | ||
Comment 1•3 years ago
|
||
Preliminary investigation:
From developer tools, the icon URLs are resource://pdf.js/web/images/findbarButton-previous.svg and resource://pdf.js/web/images/findbarButton-next.svg, while those two files are missing - unzip -l /usr/lib/firefox/omni.ja | grep findbar- shows nothing.
I noticed this issue on Firefox 114 provided by Arch Linux, and the issue also happens for the latest nightly version (tested the version downloaded on 2023-06-16). On the other hand, search bar icons are fine on https://mozilla.github.io/pdf.js/web/viewer.html, so this is probably an issue in how Firefox integrates pdf.js.
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Arrf... stupid typo error:
https://searchfox.org/mozilla-central/source/toolkit/components/pdfjs/jar.mn#34
Comment 4•3 years ago
|
||
:standard8, could we lint this error, e.g. if there are no files with a given pattern then warns/throws ?
| Assignee | ||
Comment 5•3 years ago
|
||
Because of a typo, the findbar icons weren't included in the build.
The reason that this has gone unnoticed until now is that the Firefox PDF Viewer uses the browser findbar by default, and the affected findbar is only needed for PDF documents embedded in e.g. <iframe> elements; this can be reproduced with e.g. https://web.archive.org/web/20220309040754/https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf
Comment 6•3 years ago
|
||
(In reply to Calixte Denizet (:calixte) from comment #4)
:standard8, could we lint this error, e.g. if there are no files with a given pattern then warns/throws ?
We already have browser_all_files_referenced.js but that is currently excluding the image files: https://searchfox.org/mozilla-central/rev/986024d59bff59819a3ed2f7c1d0f5254cdc3f3d/browser/base/content/test/static/browser_all_files_referenced.js#41-42
Presumably because of using the wildcards in the jar.mn.
Comment 7•3 years ago
|
||
Set release status flags based on info from the regressing bug 1808197
Comment 9•3 years ago
|
||
| bugherder | ||
Comment 10•3 years ago
|
||
The patch landed in nightly and beta is affected.
:Snuffleupagus, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox115towontfix.
For more information, please visit BugBot documentation.
Comment 11•3 years ago
|
||
Comment on attachment 9339585 [details]
Bug 1838883 - Correctly bundle the PDF Viewer findbar icons. r=#pdfjs-reviewers
Beta/Release Uplift Approval Request
- User impact if declined: The users searching for a string in a pdf embedded in an iframe won't have a good experience because some icons are missing.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: - open https://pspdfkit.com/blog/2021/how-to-embed-a-pdf-viewer-in-your-website/#_1-using-the-embed-tag
- click on the magnifying glass
- check that the left and right chevrons icons are here
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): It's just a matter of embedding two svg files in omni.ja
- String changes made/needed:
- Is Android affected?: No
Updated•3 years ago
|
Updated•3 years ago
|
| Reporter | ||
Comment 12•3 years ago
|
||
Thank you very much for the fast fix! I can confirm the issue is fixed on 116.0a1(2023-06-19).
Has the fix been verified in Nightly?: No
Maybe this can be changed to yes?
| Reporter | ||
Comment 13•3 years ago
|
||
Comment 14•3 years ago
|
||
Comment on attachment 9339585 [details]
Bug 1838883 - Correctly bundle the PDF Viewer findbar icons. r=#pdfjs-reviewers
Approved for 115.0b8.
Comment 15•3 years ago
|
||
| bugherder uplift | ||
Updated•3 years ago
|
| Reporter | ||
Comment 16•3 years ago
|
||
Probably revising the Beta/Release Uplift Approval Request is not needed as it's already approved
Updated•3 years ago
|
Reproducible on a 2023-06-15 Nightly build on Windows 10.
Verified as fixed on Firefox 115.0b8(build ID: 20230620180051) and Nightly 116.0a1(build ID: 20230620212415) on Windows 10, macOS 12, Ubuntu 22.
‘Previous’ and ‘Next’ buttons are now visible and working as intended.
Description
•