Bug: Port 1776207 to Thunderbird - Perma browser/base/content/test/performance/browser_startup_content.js | all known modules scripts should have been loaded - Got 1, expected +0 when Gecko 103 merges to Beta on 2022-06-27
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2022-06-28 10:31:19+00:00
Resolved: 2022-06-28 22:53:38+00:00

Reported from Paenglab that the build is not busted but there is an almost empty main window. Reported errors like `ComponentUtils.generateNSGetFactory is not a function`.
A back-out of https://hg.mozilla.org/mozilla-central/rev/f0631bbdcb44e2d8a893b19798f6bef403d6886e fixes it.

+++ This bug was initially created as a clone of Bug #1776207 +++

[Central-as-beta simulation](https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&selectedTaskRun=AEiP1ejhRfuwi_93-Or-Lg.0&resultStatus=testfailed%2Cbusted%2Cexception%2Csuccess%2Cretry%2Cusercancel%2Crunnable&revision=d081623b2cb1396835ffbb828082c2225ee2529c&test_paths=browser%2Fbase%2Fcontent%2Ftest%2Fperformance) 
[How to run these simulations](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)

[Failure log 1](https://treeherder.mozilla.org/logviewer?job_id=382284097&repo=try&lineNumber=2699)
Failure line 1 : TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup_content.js | all known modules scripts should have been loaded - Got 1, expected +0
[Failure log 2](https://treeherder.mozilla.org/logviewer?job_id=382286686&repo=try&lineNumber=3455)
Failure line 2 : TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup.js | should have no unexpected modules loaded before profile selection - Got 1, expected +0 


~~~
[task 2022-06-23T12:09:59.511Z] 12:09:59     INFO - TEST-START | browser/base/content/test/performance/browser_startup_content.js
[task 2022-06-23T12:10:00.088Z] 12:10:00     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "http://example.com/browser/browser/base/content/test/performance/file_empty.html" line: 0}]
[task 2022-06-23T12:10:00.174Z] 12:10:00     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_content.js | should have no unexpected modules loaded on content process startup - 
[task 2022-06-23T12:10:00.184Z] 12:10:00     INFO - TEST-INFO | started process screentopng
[task 2022-06-23T12:10:01.301Z] 12:10:01     INFO - TEST-INFO | screentopng: exit 0
[task 2022-06-23T12:10:01.303Z] 12:10:01     INFO - Buffered messages logged at 12:09:59
[task 2022-06-23T12:10:01.304Z] 12:10:01     INFO - Entering test bound 
[task 2022-06-23T12:10:01.305Z] 12:10:01     INFO - Buffered messages finished
[task 2022-06-23T12:10:01.307Z] 12:10:01     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup_content.js | all known modules scripts should have been loaded - Got 1, expected +0
[task 2022-06-23T12:10:01.307Z] 12:10:01     INFO - Stack trace:
[task 2022-06-23T12:10:01.308Z] 12:10:01     INFO - chrome://mochikit/content/browser-test.js:test_is:1429
[task 2022-06-23T12:10:01.308Z] 12:10:01     INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:checkLoadedScripts:883
[task 2022-06-23T12:10:01.309Z] 12:10:01     INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/browser_startup_content.js:null:174
[task 2022-06-23T12:10:01.312Z] 12:10:01     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-23T12:10:01.312Z] 12:10:01     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup_content.js | modules is expected to load for content process startup but wasn't: resource:///modules/StartupRecorder.jsm - 
[task 2022-06-23T12:10:01.313Z] 12:10:01     INFO - Stack trace:
[task 2022-06-23T12:10:01.313Z] 12:10:01     INFO - chrome://mochikit/content/browser-test.js:test_ok:1401
[task 2022-06-23T12:10:01.314Z] 12:10:01     INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:checkLoadedScripts:890
[task 2022-06-23T12:10:01.314Z] 12:10:01     INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/browser_startup_content.js:null:174
[task 2022-06-23T12:10:01.317Z] 12:10:01     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_content.js | should have no unexpected frameScripts loaded on content process startup - 
[task 2022-06-23T12:10:01.318Z] 12:10:01     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_content.js | all known frameScripts scripts should have been loaded - 
[task 2022-06-23T12:10:01.318Z] 12:10:01     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_content.js | should have no unexpected processScripts loaded on content process startup - 
[task 2022-06-23T12:10:01.319Z] 12:10:01     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_content.js | all known processScripts scripts should have been loaded - 
[task 2022-06-23T12:10:01.321Z] 12:10:01     INFO - Leaving test bound 
[task 2022-06-23T12:10:01.321Z] 12:10:01     INFO - GECKO(1639) | MEMORY STAT | vsize 20983375MB | residentFast 1230MB
[task 2022-06-23T12:10:01.322Z] 12:10:01     INFO - TEST-OK | browser/base/content/test/performance/browser_startup_content.js | took 1026ms
~~~

~~~
[task 2022-06-23T12:30:32.521Z] 12:30:32     INFO - services loaded before becoming idle: @mozilla.org/url-classifier/jslib;1
[task 2022-06-23T12:30:32.521Z] 12:30:32     INFO - services loaded before becoming idle: @mozilla.org/login-manager/crypto/SDR;1
[task 2022-06-23T12:30:32.522Z] 12:30:32     INFO - services loaded before becoming idle: @mozilla.org/query-stripping-list-service;1
[task 2022-06-23T12:30:32.522Z] 12:30:32     INFO - services loaded before becoming idle: @mozilla.org/browser/nav-bookmarks-service;1
[task 2022-06-23T12:30:32.523Z] 12:30:32     INFO - services loaded before becoming idle: @mozilla.org/netwerk/cache-storage-service;1
[task 2022-06-23T12:30:32.523Z] 12:30:32     INFO - services loaded before becoming idle: @mozilla.org/dhcp-client;1
[task 2022-06-23T12:30:32.523Z] 12:30:32     INFO - services loaded before becoming idle: @mozilla.org/xpcom/memory-watcher;1
[task 2022-06-23T12:30:32.528Z] 12:30:32     INFO - TEST-INFO | started process screenshot
[task 2022-06-23T12:30:32.643Z] 12:30:32     INFO - TEST-INFO | screenshot: exit 0
[task 2022-06-23T12:30:32.650Z] 12:30:32     INFO - Buffered messages logged at 12:30:32
[task 2022-06-23T12:30:32.650Z] 12:30:32     INFO - Entering test bound 
[task 2022-06-23T12:30:32.651Z] 12:30:32     INFO - Buffered messages finished
[task 2022-06-23T12:30:32.651Z] 12:30:32     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup.js | should have no unexpected modules loaded before profile selection - Got 1, expected +0
[task 2022-06-23T12:30:32.651Z] 12:30:32     INFO - Stack trace:
[task 2022-06-23T12:30:32.652Z] 12:30:32     INFO - chrome://mochikit/content/browser-test.js:test_is:1429
[task 2022-06-23T12:30:32.652Z] 12:30:32     INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/browser_startup.js:null:190
[task 2022-06-23T12:30:32.652Z] 12:30:32     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-23T12:30:32.653Z] 12:30:32     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup.js | unexpected modules: resource://gre/modules/ComponentUtils.jsm - 
[task 2022-06-23T12:30:32.653Z] 12:30:32     INFO - Stack trace:
[task 2022-06-23T12:30:32.653Z] 12:30:32     INFO - 0 <TOP LEVEL> ["resource://gre/modules/XULStore.jsm":16:39]
[task 2022-06-23T12:30:32.653Z] 12:30:32     INFO - 1 _earlyBlankFirstPaint() ["resource:///modules/BrowserGlue.jsm":1474:16]
[task 2022-06-23T12:30:32.653Z] 12:30:32     INFO - 2 BG_observe() ["resource:///modules/BrowserGlue.jsm":1107:13]
[task 2022-06-23T12:30:32.654Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | all modules allowlist entries should have been used - 
[task 2022-06-23T12:30:32.654Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | chrome://webcompat/content/data/ua_overrides.jsm is not allowed before first paint - 
[task 2022-06-23T12:30:32.655Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | chrome://webcompat/content/lib/ua_overrider.jsm is not allowed before first paint - 
[task 2022-06-23T12:30:32.655Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | resource:///modules/AboutNewTab.jsm is not allowed before first paint - 
[task 2022-06-23T12:30:32.656Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | resource:///modules/BrowserUsageTelemetry.jsm is not allowed before first paint - 
[task 2022-06-23T12:30:32.656Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | resource:///modules/ContentCrashHandlers.jsm is not allowed before first paint - 
[task 2022-06-23T12:30:32.657Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | resource:///modules/ShellService.jsm is not allowed before first paint - 
[task 2022-06-23T12:30:32.657Z] 12:30:32     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup.js | resource://gre/modules/NewTabUtils.jsm is not allowed before first paint - 
~~~