Closed Bug 1730457 Opened 4 years ago Closed 4 years ago

White padding in browserAction popup window

Categories

(Thunderbird :: Add-Ons: General, defect)

Thunderbird 91
Desktop
All
defect

Tracking

(thunderbird_esr91+ fixed, thunderbird93 wontfix, thunderbird94 fixed)

VERIFIED FIXED
94 Branch
Tracking Status
thunderbird_esr91 + fixed
thunderbird93 --- wontfix
thunderbird94 --- fixed

People

(Reporter: juraj.masiar, Assigned: john)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0

Steps to reproduce:

  1. install one of these two addons:
    https://addons.thunderbird.net/en-US/thunderbird/addon/web_translate/
    https://addons.thunderbird.net/en-US/thunderbird/addon/scroll_anywhere/
  2. click the toolbar icon

Actual results:

Window is opened with a strange white padding

Expected results:

There should be no additional padding.
This is a regression, but I can't remember when, exactly, something around 91. I was not reporting it sooner because I thought someone must already noticed it.

I'm author of these addons and I've released some of them also in Firefox, Chrome and Safari where no padding is added.

I installed Web Translate in my 78.14.0, 91.1.0 and 93.0b1 on Fedora 34 Workstation, Gnome 40 desktop using the OS Adwaita-dark theme with the Thunderbird System theme.

Did not see the padding in TB 78.14.0, but do in 91.1.0 and 93.0b3.

I also noticed that the dialog window has square corners in 78.14.0, while they are rounded in 91.1.0 and 93.0b1 on my system.
Kind of like it better with the padding.

Component: Untriaged → Add-Ons: General
OS: Unspecified → All
Hardware: Unspecified → Desktop
Attached image Web Translate.png

Enabled the extensions Dark mode.

Version: Thunderbird 93 → Thunderbird 91

This is part of the new Proton(?) design. The round corners are part of the main UI and the popup browser is loaded inside of the white frame. Extensions have no way to style it.

What I would like to change instead of removing the padding:

  • make the popup theme aware, so the padding has the same background color like the backgound of the install-add-on-confirmation popup (and maybe even the little 1px grey border)
  • make the default background color of the popup also follow the theme.

That still requires the add-on developers to adapt, but it will give them better integration. How does that sound?

Attached image Firefox Proton

Well, I would like it to stay in sync with Firefox, Chrome and Safari, so that I don't have to write browser specific code :).
Also, as you can see, I'm a fan of gradient colors, so styling the padding separately would be pretty challenging, if even possible?

I've noticed the round corners in Firefox Proton, but the padding there is only 1px, so it's not that bad.

Oh, ok, we should definitely adjust the width of the padding to match Firefox. I was not aware of that.

Assignee: nobody → john
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 94 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ee7e6ff28c6a
Remove extra padding from WebExtension BrowserAction popup windows. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Can you verify it is fixed in daily? (It is for me)

Flags: needinfo?(juraj.masiar)

Tested in 94.0a1 (2021-09-28) (64-bit), works as expected.
Thank you :)

Status: RESOLVED → VERIFIED
Flags: needinfo?(juraj.masiar)

Comment on attachment 9243107 [details]
Bug 1730457 - Remove extra padding from WebExtension BrowserAction popup windows. r=darktrojan

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Ugly padding in action popups.

Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):
Low.

Attachment #9243107 - Flags: approval-comm-esr91?

Comment on attachment 9243107 [details]
Bug 1730457 - Remove extra padding from WebExtension BrowserAction popup windows. r=darktrojan

[Triage Comment]
Approved for esr91

Attachment #9243107 - Flags: approval-comm-esr91? → approval-comm-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: