Bug 1820111 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The PreferenceExperiments.jsm is getting initialized during shutdown, when it's not necessary. This has been seen in a Marionette test that quickly requests quitting Firefox  once it finished startup:

Here the appropriate excerpt from the log:

https://treeherder.mozilla.org/logviewer?job_id=407440882&repo=autoland&lineNumber=46252

```
[task 2023-03-01T15:47:13.741Z] 15:47:13     INFO -  JavaScript error: resource://gre/modules/AsyncShutdown.sys.mjs, line 727: Error: Phase "IOUtils: waiting for profileBeforeChange IO to complete" is finished, it is too late to register completion condition "JSON store: writing data for 'shieldpreferenceexperiments'"
```
The PreferenceExperiments.jsm is getting initialized during shutdown, when it's not necessary. This has been seen in a Marionette test that quickly requests quitting Firefox  once it finished startup:

Here the appropriate excerpt from the log:

https://treeherder.mozilla.org/logviewer?job_id=407440882&repo=autoland&lineNumber=46252

```
[task 2023-03-01T15:47:13.741Z] 15:47:13     INFO -  JavaScript error: resource://gre/modules/AsyncShutdown.sys.mjs, line 727: Error: Phase "IOUtils: waiting for profileBeforeChange IO to complete" is finished, it is too late to register completion condition "JSON store: writing data for 'shieldpreferenceexperiments'"
```

For details also see bug 1819671 comment 5.

Back to Bug 1820111 Comment 0