Open Bug 2060644 Opened 3 months ago Updated 2 days ago

Why were favicons removed from PDF.js tabs?

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 153
defect

Tracking

()

ASSIGNED

People

(Reporter: ncf, Assigned: calixte)

Details

Attachments

(1 external file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0

Steps to reproduce:

No motivation was given for the change in https://bugzilla.mozilla.org/show_bug.cgi?id=2035251 and it is very annoying to me: I typically have many PDFs open and showing the website's favicon is much more useful than a generic PDF icon. Please either revert this change or make it configurable through about:config.

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

The severity field is not set for this bug.
:calixte, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(cdenizet)

Ryan, wdyt we should do ?

Severity: -- → S3
Flags: needinfo?(cdenizet) → needinfo?(rcasey)
Priority: -- → P3

If we feel this is not an edge case, then I'd say to revert. The motivation to change was because the opposite case is more often the common use case: A user may have many tabs open but struggles to find which one is actually the PDF.

Flags: needinfo?(rcasey)

I'd be fine with this being the default as long as there is some way to configure it away.

Related: https://social.sdf.org/@elb/117646175954017671

The #Firefox tab icon for a downloaded PDF file open in a tab is a little sheet of paper with the corner turned over, and the letters PDF across the bottom in super tiny letters. Every time I see it, I think it's an SD card. (The turned down corner is on the wrong end, but my brain doesn't process that immediately.)

Designers, tiny little letters on icons weren't a great idea when icons were a large portion of the screen, and they're worse when they're 1/500th of the screen area.

@calixte wdyt of reverting here? And when we get bugs complaining that users can't find their PDF tabs amongst their other tabs, we can just point them to this thread.

Flags: needinfo?(cdenizet)
Assignee: nobody → cdenizet
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(cdenizet)
Priority: P3 → P1

The pdf.js viewer declares chrome://global/skin/icons/pdf.svg as its tab
icon, which hid the site favicon for every web PDF. For http(s) PDFs, the
viewer icon now triggers the usual /favicon.ico guess and is only shown if
that load fails.

The favicon is loaded with the site's principal and no loading node: the
viewer's resource://pdf.js principal and CSP would otherwise make the
request cross-origin or block it outright.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: