Closed Bug 1569118 Opened 4 years ago Closed 4 years ago

Follow-up of Bug 1543725: Fix starting marionette on macos


(Thunderbird :: Testing Infrastructure, task)

Not set


(Not tracked)

Thunderbird 70.0


(Reporter: samuel.thibault, Unassigned)



(1 file)

Marionette testing was added with Bug 1543725. We however had to disable testing on macos because thunderbird was not managing to reach marionette server start. This is probably due to some startup dialog box, such as disabled in testing/marionette/, that would be specific to macos.

Type: -- → task

Where can I find the file? Maybe it is the new account dialog which pops-up when no account has been setup yet? Or does that file create a temporary account to prevent that, or disables this dialog? Does anyone have some log files from automation, which show this problem?

Ever confirmed: true

It's sad to see that we don't have that file in mozilla-central beside the other Marionette client files. As it is I cannot test it easily without having to clone comm-central. Also note (even we don't release Marionette client code anymore to PyPI) that this file wouldn't be part of the official Marionette client package.

So what happens when you start the tests locally? It should basically show the same problem as in CI.

The account creation part is handled by

"mail.provider.suppress_dialog_on_startup": True

and that works for linux & windows.

It's sad to see that we don't have that file in mozilla-central beside the other Marionette client files.

This was on purpose because if something needed to be added, it would be along a change in comm-central.

So what happens when you start the tests locally? It should basically show the same problem as in CI.

I don't have a macos box to test this unfortunately. The only thing I have is the test log here:

which shows that nothing happens between

[task 2019-07-30T13:24:50.142Z] 13:24:50     INFO -  JavaScript error: chrome://messenger/content/msgViewPickerOverlay.js, line 95: TypeError: gFolderDisplay is null
[task 2019-07-30T13:26:48.555Z] 13:26:48    ERROR - Process killed after 120s because no connection to Marionette server could be established. Check gecko.log for errors

To be compared with e.g.

Most likely it's this Javascript error which prevents further initialization of Thunderbird, and to get it to send out the marionette-startup-requested observer notification. I would suggest that someone fixes this error first.

I had already had a look at this, and I don't think it's releated. See try , in which I hacked around the JS issues, this is still getting stuck somehow.

What happened to the patches from bug 1530980? I cannot find marionette-startup-requested anywhere in comm-central.

I thought that I did reply right away but looks like the comment didn't make it.

By the time when I checked the code on comm-central I accidentally opened dxr and not searchfox. Looks like dxr is no longer updating it's content and as such I didn't see those commits.

The only suggestion I have right now is that you add debug/logging code to figure out where in the startup sequence the hang happens.

I have put various prints here and there, and ended up noticing that it's ext-legacy.js which seems to get stuck, as can be seen in the live_backing.log files of the Linux vs Macos Mn tasks in

We can notice that for messenger.xul, we have "beginning load of chrome://messenger/content/messenger.xul" (printed in Document::BeginLoad) and "EndLoad1 chrome://messenger/content/messenger.xul" and up to EndLoad9, printed in Document::EndLoad, but not EndLoad10, it is stuck in the Document::UnblockDOMContentLoaded call, itself stuck in Document::DispatchContentLoadedEvents call, itself stuck in the nsObserverService::NotifyObservers call. Prints in ext-legacy.js show that it is stuck in

Overlays.load(chromeManifest, document.defaultView);

In I have tried to disable ext-legacy.js the hard way, it has indeed unstuck loading messenger.xul, and I don't see other documents not finishing loading, but still ./comm/mail/base/content/msgMail3PaneWindow.js's OnLoadMessenger() doesn't get called, I don't know why messenger.xul's onload="OnLoadMessenger()" doesn't kicks in.

I found some fixes, doing some tries, I will submit something next week.

Sigh, the Mac address book is interfering. That's why we already switch it off in various locations:

Target Milestone: --- → Thunderbird 70.0

Pushed by
Fix marionette startup on MacOS by disabling Mac address book integration. r=rjl DONTBUILD

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

Great to see that Marionette is working now also on MacOS.

You need to log in before you can comment on or make changes to this bug.