Closed Bug 1557102 Opened 5 years ago Closed 5 years ago

Inline styles initially ignored in overlays

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

(thunderbird68 fixed, thunderbird69 fixed)

RESOLVED FIXED
Thunderbird 69.0
Tracking Status
thunderbird68 --- fixed
thunderbird69 --- fixed

People

(Reporter: public, Assigned: public)

Details

Attachments

(4 files)

Inline XUL styles are not evaluated when overlays load. They seem, however, to be properly evaluated if something else triggers re-evaluation later on.

STR:
0. Last Thunderbird68 nightly, clean profile. (tested on Linux x64, might affect other platforms as well)

  1. Install the attached add-on

Expected:
The main window should not change, as the image in the overlay is styled as display:none.

Actual:
A (stretched) warning sign image appears, with the default width of the warning sign image and transparent background. When inspecting the image in the developer toolbox, it immediately disappears.

About the reproduction add-on:
The add-on simply adds an image element with the alert-icon class and the style
display:none;width:500px;background-color:red to the tabmail-container hbox. All inline styles are not evaluated immediately, while the CSS rules for alert-icon work fine.

Flags: needinfo?(geoff)

That's interesting, but I doubt anything can be done about it.

Status: UNCONFIRMED → NEW
Component: Add-Ons: Extensions API → Add-Ons: General
Ever confirmed: true
Flags: needinfo?(geoff)

If we can't fix the actual issue, can we at least land a workaround? I attached a proposal. Imho it would be better to have a central workaround in Thunderbird than having individual workarounds in all add-ons.

Attachment #9072198 - Flags: review?(geoff)

Well, in TB 68 beta I sometimes see a "bleached" calendar. Should I file a new bug for this?

Jorg, I haven't seen that in the calendar views themselves, but it looks a lot like bug 1558384 to me.

Comment on attachment 9072198 [details] [diff] [review]
possible workaround

I'm somewhat surprised that node has a style property at this point, but apparently it does, so let's use it.

[Side note: it would be helpful if your patches were in git format, as our review tools like it better. Example setup here, if you need it: https://developer.mozilla.org/en-US/docs/Mozilla/Mercurial/Installing_Mercurial#Basic_configuration]
Attachment #9072198 - Flags: review?(geoff) → review+

Great! The workaround patch was created on comm-beta, but applies cleanly on comm-central as well; thus requesting checkin for both.

[Sorry about the commit formatting, missed that when cloning the repo. I'll try to do better next time :) ]

Keywords: checkin-needed
Comment on attachment 9072198 [details] [diff] [review]
possible workaround

[Approval Request Comment]
User impact if declined: some add-ons don't work as expected, to fix them they'd need to ship individual workarounds
Testing completed (on c-c, etc.): tested on comm-beta
Risk to taking this patch (and alternatives if risky): doesn't seem risky to me, the change only affects overlays that were already broken without the patch and the added xpath query did not cause any noticeable performance impact on my machine
Attachment #9072198 - Flags: approval-comm-beta?
Attachment #9072198 - Flags: approval-comm-beta? → approval-comm-beta+

(In reply to Geoff Lankow (:darktrojan) from comment #6)

[Side note: it would be helpful if your patches were in git format, as our
review tools like it better. ...]

Umm, what is the issue? I imported the patch without problem for landing, and the header was correct, too. OK, diff -r 242c6d081cdb -r 58a5bc10be95 common/src/Overlays.jsm is not what we use, but which negative effect does it have?

Bugzilla's diff view thinks the file being changed is called 242c6d081cdb. Not really a big deal but annoying nonetheless.

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/686ff7f6f966
Work around inline styles being ignored. r=darktrojan

Status: NEW → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 69.0
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/00c23c4b01df
Follow-up: fix linting issue. r=darktrojan (via IRC) DONTBUILD
Assignee: nobody → public
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: