File tree Expand file tree Collapse file tree 6 files changed +11
-14
lines changed
base/content/test/performance Expand file tree Collapse file tree 6 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 1
1
[DEFAULT]
2
- # to avoid overhead when running the browser normally, StartupRecorder.jsm will
2
+ # to avoid overhead when running the browser normally, StartupRecorder.sys.mjs will
3
3
# do almost nothing unless browser.startup.record is true.
4
4
# gfx.canvas.willReadFrequently.enable is just an optimization, but needs to be
5
5
# set during early startup to have an impact as a canvas will be used by
6
- # StartupRecorder.jsm
6
+ # StartupRecorder.sys.mjs
7
7
prefs =
8
8
# Skip migration work in BG__migrateUI for browser_startup.js since it isn't
9
9
# representative of common startup.
@@ -51,7 +51,7 @@ support-files =
51
51
[browser_startup_flicker.js]
52
52
run-if =
53
53
debug
54
- nightly_build # Requires StartupRecorder.jsm , which isn't shipped everywhere by default
54
+ nightly_build # Requires StartupRecorder.sys.mjs , which isn't shipped everywhere by default
55
55
[browser_startup_hiddenwindow.js]
56
56
skip-if =
57
57
os == " mac"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const startupPhases = {
29
29
allowlist : {
30
30
modules : new Set ( [
31
31
"resource:///modules/BrowserGlue.sys.mjs" ,
32
- "resource:///modules/StartupRecorder.jsm " ,
32
+ "resource:///modules/StartupRecorder.sys.mjs " ,
33
33
"resource://gre/modules/AppConstants.sys.mjs" ,
34
34
"resource://gre/modules/ActorManagerParent.sys.mjs" ,
35
35
"resource://gre/modules/CustomElementsListener.jsm" ,
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ skip-if =
6
6
debug
7
7
tsan
8
8
asan
9
- # to avoid overhead when running the browser normally, StartupRecorder.jsm will
9
+ # to avoid overhead when running the browser normally, StartupRecorder.sys.mjs will
10
10
# do almost nothing unless browser.startup.record is true.
11
11
# gfx.canvas.willReadFrequently.enable is just an optimization, but needs to be
12
12
# set during early startup to have an impact as a canvas will be used by
13
- # StartupRecorder.jsm
13
+ # StartupRecorder.sys.mjs
14
14
prefs =
15
15
browser.startup.record =true
16
16
gfx.canvas.willReadFrequently.enable =true
Original file line number Diff line number Diff line change 2
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
- var EXPORTED_SYMBOLS = [ "StartupRecorder" ] ;
6
-
7
5
const Cm = Components . manager ;
8
6
Cm . QueryInterface ( Ci . nsIServiceManager ) ;
9
7
10
- const { AppConstants } = ChromeUtils . importESModule (
11
- "resource://gre/modules/AppConstants.sys.mjs"
12
- ) ;
8
+ import { AppConstants } from "resource://gre/modules/AppConstants.sys.mjs" ;
13
9
14
10
let firstPaintNotification = "widget-first-paint" ;
15
11
// widget-first-paint fires much later than expected on Linux.
@@ -59,7 +55,7 @@ let afterPaintListener = () => {
59
55
* This component only exists in nightly and debug builds, it doesn't ship in
60
56
* our release builds.
61
57
*/
62
- function StartupRecorder ( ) {
58
+ export function StartupRecorder ( ) {
63
59
this . wrappedJSObject = this ;
64
60
this . data = {
65
61
images : {
@@ -74,6 +70,7 @@ function StartupRecorder() {
74
70
this . _resolve = resolve ;
75
71
} ) ;
76
72
}
73
+
77
74
StartupRecorder . prototype = {
78
75
QueryInterface : ChromeUtils . generateQI ( [ "nsIObserver" ] ) ,
79
76
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ if (buildconfig.substs.get('MOZ_DEBUG') or
71
71
{
72
72
'cid' : '{11c095b2-e42e-4bdf-9dd0-aed87595f6a4}' ,
73
73
'contract_ids' : ['@mozilla.org/test/startuprecorder;1' ],
74
- 'jsm ' : 'resource:///modules/StartupRecorder.jsm ' ,
74
+ 'esModule ' : 'resource:///modules/StartupRecorder.sys.mjs ' ,
75
75
'constructor' : 'StartupRecorder' ,
76
76
},
77
77
]
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ EXTRA_JS_MODULES += [
94
94
95
95
if CONFIG ["MOZ_DEBUG" ] or CONFIG ["MOZ_DEV_EDITION" ] or CONFIG ["NIGHTLY_BUILD" ]:
96
96
EXTRA_JS_MODULES += [
97
- "StartupRecorder.jsm " ,
97
+ "StartupRecorder.sys.mjs " ,
98
98
]
99
99
100
100
BROWSER_CHROME_MANIFESTS += [
You can’t perform that action at this time.
0 commit comments