Closed Bug 1838883 Opened 3 years ago Closed 3 years ago

pdf.js missing search bar icons

Categories

(Firefox :: PDF Viewer, defect)

Firefox 114
defect

Tracking

()

VERIFIED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox114 --- wontfix
firefox115 --- verified
firefox116 --- verified

People

(Reporter: yan12125, Assigned: Snuffleupagus)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached image search-missing-icon.png

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

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.

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.

Component: Untriaged → PDF Viewer
Assignee: nobody → jonas.jenwald
URL: 1808197
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: regression
Regressed by: 1808197
URL: 1808197

:standard8, could we lint this error, e.g. if there are no files with a given pattern then warns/throws ?

Flags: needinfo?(standard8)

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

(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.

Flags: needinfo?(standard8)

Set release status flags based on info from the regressing bug 1808197

Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/021a7eb3c5e1 Correctly bundle the PDF Viewer findbar icons. r=pdfjs-reviewers,calixte
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

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-firefox115 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(jonas.jenwald)

Comment on attachment 9339585 [details]
Bug 1838883 - Correctly bundle the PDF Viewer findbar icons. r=#pdfjs-reviewers

Beta/Release Uplift Approval Request

  • 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
Attachment #9339585 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Flags: needinfo?(jonas.jenwald)

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?

Flags: needinfo?(cdenizet)

Comment on attachment 9339585 [details]
Bug 1838883 - Correctly bundle the PDF Viewer findbar icons. r=#pdfjs-reviewers

Approved for 115.0b8.

Attachment #9339585 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Probably revising the Beta/Release Uplift Approval Request is not needed as it's already approved

Flags: needinfo?(cdenizet)
QA Whiteboard: [qa-triaged]

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.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: