Open
Bug 1423366
Opened 7 years ago
Updated 2 years ago
Text truncated shorter on Linux in browserAction badge
Categories
(WebExtensions :: Frontend, defect, P5)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: rockytvbr, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) QupZilla/1.9.0 Safari/538.1 Steps to reproduce: Use the following snippet in an addon: `chrome.browserAction.setBadgeText("123+")` and then `chrome.browserAction.setBadgeText("123-")` Actual results: The badge in the addon button should correctly display a plus sign (+), but it doesn't. Writing a minus sign (-) works: it is displayed correctly on the badge. Expected results: The badge should display "123+" and not simply "123".
Attachment #8934717 -
Attachment description: A few screenshots detailing this bug. From right to left: plus and minus sign on Firefox, plus sign working on Chrome. Note that the plus sign isn't displayed. → A few screenshots detailing this bug. From left to right: plus and minus sign on Firefox, plus sign working on Chrome. Note that the plus sign isn't displayed.
Component: Untriaged → WebExtensions: Untriaged
Product: Firefox → Toolkit
Comment 1•6 years ago
|
||
Works for me on OS X. Suspect this is a graphics sizing issue and anything that runs over the edge of the badge is not being shown. Probably a platform issue, since it looks like you are on Linux.
Updated•6 years ago
|
Priority: -- → P5
Summary: Plus sign is not displayed with setBadgeText → Text truncated shorter on Linux in browserAction badge
I'm on Windows 10 and I had a couple people that use my extension report the same issue. Could it be an issue with the default fallback fonts that Firefox uses?
Yup, just confirmed. It works fine on Linux, but on Windows it is truncated. This is an issue with the font being used by Windows on badge texts. Is it possible to change it via userContent.css?
Updated•6 years ago
|
Product: Toolkit → WebExtensions
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•