Closed Bug 1538509 Opened 3 years ago Closed 3 years ago

[de-xbl] remove the overlayTrigger binding


(Thunderbird :: General, task)

Not set


(Not tracked)

Thunderbird 69.0


(Reporter: mkmelin, Assigned: mkmelin)




(1 file, 1 obsolete file)

Remove the overlayTriger binding.

Looking at this more closely, I'm not sure what it's supposed to do.

It creates an element, then appends that to the document. Loads the css for the xbl, so the element would get binding attached. That causes the custom event, which the event listener reacts to.

Unless there's some side effect I don't see here, it looks rather pointless, and more of a game to win some time?

At least lightning seems ok with this.

Assignee: nobody → mkmelin+mozilla
Attachment #9053070 - Flags: review?(geoff)

I have a bad feeling about doing this. What that code is supposed to do is delay the fake load event we send to listeners in the event of an overlay being applied after the real load event, which happens in some circumstances. We wait for a stylesheet to load and a binding to be constructed so that we can assume all stylesheets have loaded and all bindings have been applied.

I'm going to make a build and try this on one of my VMs, as it used to run this bit of code frequently.

I guess the question is, why do we need to wait for all stylesheets or bindings to be applied? If it's purely about bindings (which would be applied through stylesheet hookup) then for any overlay loading this is just not something we'd support anymore in 68. For 68 add-ons xbl bindings can be considered dead, and there's hope we're not really even using them in the core product for anything.

Comment on attachment 9053070 [details] [diff] [review]

Review of attachment 9053070 [details] [diff] [review]:

Oh go on then. I suppose it's only a tiny fraction of use cases even if it was doing something useful.
Attachment #9053070 - Flags: review?(geoff) → review+

We might want to delay landing it until calendar xbl is further done, just to be sure.

Type: enhancement → task
Keywords: checkin-needed

Pushed by
[de-xbl] remove the overlayTrigger binding. r=darktrojan

Closed: 3 years ago
Keywords: checkin-needed
Resolution: --- → FIXED

This is really a Calendar bug fixed at 7.1.

Target Milestone: --- → Thunderbird 69.0
You need to log in before you can comment on or make changes to this bug.