Closed Bug 1879004 Opened 9 months ago Closed 9 months ago

Make windows.create() follow firefox and do not wait for title change

Categories

(Thunderbird :: Add-Ons: Extensions API, task)

Tracking

(Not tracked)

RESOLVED FIXED
124 Branch

People

(Reporter: TbSync, Assigned: TbSync)

References

Details

Attachments

(1 file)

Under certain conditions, the Promise returned by `windows.create()´ does not fulfil because there is no title-change-event, which we currently await. Firefox does not wait for the title of the loaded tab to be used as the window title, before fulfilling the windows.create() Promise.

In Bug 1816263 we added the condition to wait for a title change, before
returning the newly created window. This causes the windows.create()
Promise to never fulfill in certain scenarios. Since Firefox is not
doing this, we will revert this behavioral change. The title will only
be ready after the inner tab has been loaded completely.

Assignee: nobody → john
Status: NEW → ASSIGNED

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/9e856c281e3e
Make windows.create() follow firefox and do not wait for title change, r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: