@@ -9,7 +9,6 @@ const lazy = {};
9
9
10
10
ChromeUtils . defineESModuleGetters ( lazy , {
11
11
AboutHomeStartupCache : "resource:///modules/AboutHomeStartupCache.sys.mjs" ,
12
- AboutNewTab : "resource:///modules/AboutNewTab.sys.mjs" ,
13
12
AWToolbarButton : "resource:///modules/aboutwelcome/AWToolbarUtils.sys.mjs" ,
14
13
ASRouter : "resource:///modules/asrouter/ASRouter.sys.mjs" ,
15
14
ASRouterDefaultConfig :
@@ -22,8 +21,6 @@ ChromeUtils.defineESModuleGetters(lazy, {
22
21
BrowserUtils : "resource://gre/modules/BrowserUtils.sys.mjs" ,
23
22
BrowserUsageTelemetry : "resource:///modules/BrowserUsageTelemetry.sys.mjs" ,
24
23
BrowserWindowTracker : "resource:///modules/BrowserWindowTracker.sys.mjs" ,
25
- CaptchaDetectionPingUtils :
26
- "resource://gre/modules/CaptchaDetectionPingUtils.sys.mjs" ,
27
24
ContentBlockingPrefs :
28
25
"moz-src:///browser/components/protections/ContentBlockingPrefs.sys.mjs" ,
29
26
ContextualIdentityService :
@@ -36,7 +33,6 @@ ChromeUtils.defineESModuleGetters(lazy, {
36
33
"moz-src:///browser/components/DesktopActorRegistry.sys.mjs" ,
37
34
Discovery : "resource:///modules/Discovery.sys.mjs" ,
38
35
DistributionManagement : "resource:///modules/distribution.sys.mjs" ,
39
- DoHController : "resource://gre/modules/DoHController.sys.mjs" ,
40
36
DownloadsViewableInternally :
41
37
"resource:///modules/DownloadsViewableInternally.sys.mjs" ,
42
38
ExtensionsUI : "resource:///modules/ExtensionsUI.sys.mjs" ,
@@ -48,36 +44,27 @@ ChromeUtils.defineESModuleGetters(lazy, {
48
44
LoginBreaches : "resource:///modules/LoginBreaches.sys.mjs" ,
49
45
LoginHelper : "resource://gre/modules/LoginHelper.sys.mjs" ,
50
46
MigrationUtils : "resource:///modules/MigrationUtils.sys.mjs" ,
51
- NewTabUtils : "resource://gre/modules/NewTabUtils.sys.mjs" ,
52
47
NimbusFeatures : "resource://nimbus/ExperimentAPI.sys.mjs" ,
53
48
OnboardingMessageProvider :
54
49
"resource:///modules/asrouter/OnboardingMessageProvider.sys.mjs" ,
55
- PageActions : "resource:///modules/PageActions.sys.mjs" ,
56
50
PageDataService : "resource:///modules/pagedata/PageDataService.sys.mjs" ,
57
- PageThumbs : "resource://gre/modules/PageThumbs.sys.mjs" ,
58
51
PdfJs : "resource://pdf.js/PdfJs.sys.mjs" ,
59
52
PlacesBrowserStartup :
60
53
"moz-src:///browser/components/places/PlacesBrowserStartup.sys.mjs" ,
61
54
// PluginManager is used by the `listeners` object below.
62
55
// eslint-disable-next-line mozilla/valid-lazy
63
56
PluginManager : "resource:///actors/PluginParent.sys.mjs" ,
64
57
PrivateBrowsingUtils : "resource://gre/modules/PrivateBrowsingUtils.sys.mjs" ,
65
- ProcessHangMonitor : "resource:///modules/ProcessHangMonitor.sys.mjs" ,
66
58
ProfileDataUpgrader :
67
59
"moz-src:///browser/components/ProfileDataUpgrader.sys.mjs" ,
68
- ProfilesDatastoreService :
69
- "moz-src:///toolkit/profile/ProfilesDatastoreService.sys.mjs" ,
70
60
RemoteSecuritySettings :
71
61
"resource://gre/modules/psm/RemoteSecuritySettings.sys.mjs" ,
72
62
RemoteSettings : "resource://services-settings/remote-settings.sys.mjs" ,
73
63
SafeBrowsing : "resource://gre/modules/SafeBrowsing.sys.mjs" ,
74
64
Sanitizer : "resource:///modules/Sanitizer.sys.mjs" ,
75
- SandboxUtils : "resource://gre/modules/SandboxUtils.sys.mjs" ,
76
65
ScreenshotsUtils : "resource:///modules/ScreenshotsUtils.sys.mjs" ,
77
66
SearchSERPTelemetry :
78
67
"moz-src:///browser/components/search/SearchSERPTelemetry.sys.mjs" ,
79
- SelectableProfileService :
80
- "resource:///modules/profiles/SelectableProfileService.sys.mjs" ,
81
68
SessionStartup : "resource:///modules/sessionstore/SessionStartup.sys.mjs" ,
82
69
SessionStore : "resource:///modules/sessionstore/SessionStore.sys.mjs" ,
83
70
ShortcutUtils : "resource://gre/modules/ShortcutUtils.sys.mjs" ,
@@ -88,7 +75,6 @@ ChromeUtils.defineESModuleGetters(lazy, {
88
75
TelemetryReportingPolicy :
89
76
"resource://gre/modules/TelemetryReportingPolicy.sys.mjs" ,
90
77
TRRRacer : "resource:///modules/TRRPerformance.sys.mjs" ,
91
- TabCrashHandler : "resource:///modules/ContentCrashHandlers.sys.mjs" ,
92
78
WebChannel : "resource://gre/modules/WebChannel.sys.mjs" ,
93
79
WebProtocolHandlerRegistrar :
94
80
"resource:///modules/WebProtocolHandlerRegistrar.sys.mjs" ,
@@ -661,16 +647,6 @@ BrowserGlue.prototype = {
661
647
) ;
662
648
} ,
663
649
664
- _verifySandboxUserNamespaces : function BG_verifySandboxUserNamespaces ( aWin ) {
665
- if ( ! AppConstants . MOZ_SANDBOX ) {
666
- return ;
667
- }
668
-
669
- lazy . SandboxUtils . maybeWarnAboutMissingUserNamespaces (
670
- aWin . gNotificationBox
671
- ) ;
672
- } ,
673
-
674
650
_earlyBlankFirstPaint ( cmdLine ) {
675
651
let startTime = Cu . now ( ) ;
676
652
@@ -818,12 +794,6 @@ BrowserGlue.prototype = {
818
794
819
795
// the first browser window has finished initializing
820
796
_onFirstWindowLoaded : function BG__onFirstWindowLoaded ( aWindow ) {
821
- lazy . AboutNewTab . init ( ) ;
822
-
823
- lazy . TabCrashHandler . init ( ) ;
824
-
825
- lazy . ProcessHangMonitor . init ( ) ;
826
-
827
797
// A channel for "remote troubleshooting" code...
828
798
let channel = new lazy . WebChannel (
829
799
"remote-troubleshooting" ,
@@ -854,31 +824,15 @@ BrowserGlue.prototype = {
854
824
lazy . WeaveService . init ( ) ;
855
825
}
856
826
857
- lazy . PageThumbs . init ( ) ;
858
-
859
- lazy . NewTabUtils . init ( ) ;
860
-
861
- lazy . PageActions . init ( ) ;
862
-
863
- lazy . DoHController . init ( ) ;
864
-
865
- lazy . ProfilesDatastoreService . init ( ) . catch ( console . error ) ;
866
- lazy . SelectableProfileService . init ( ) . catch ( console . error ) ;
867
-
868
- this . _firstWindowTelemetry ( aWindow ) ;
869
-
870
- lazy . ContentBlockingPrefs . init ( ) ;
871
- lazy . CaptchaDetectionPingUtils . init ( ) ;
872
-
873
- this . _verifySandboxUserNamespaces ( aWindow ) ;
874
-
875
827
lazy . BrowserUtils . callModulesFromCategory (
876
828
{
877
829
categoryName : "browser-first-window-ready" ,
878
830
profilerMarker : "browserFirstWindowReady" ,
879
831
} ,
880
832
aWindow
881
833
) ;
834
+
835
+ this . _firstWindowTelemetry ( aWindow ) ;
882
836
} ,
883
837
884
838
_maybeOfferProfileReset ( ) {
0 commit comments