diff --git a/sample.config b/sample.config --- a/sample.config +++ b/sample.config @@ -44,16 +44,17 @@ preferences : network.proxy.http_port : 80 dom.disable_window_flip : true dom.disable_window_move_resize : true security.enable_java : false extensions.checkCompatibility : false extensions.update.notifyUser: false browser.cache.disk.smart_size.enabled: false browser.cache.disk.smart_size.first_run: false + dom.send_after_paint_to_content: true # Extensions to install in test (use "extensions: {}" for none) # Need quotes around guid because of curly braces # extensions : # "{12345678-1234-1234-1234-abcd12345678}" : c:\path\to\unzipped\xpi # foo@sample.com : c:\path\to\other\unzipped\xpi extensions : {} diff --git a/startup_test/startup_test.html b/startup_test/startup_test.html --- a/startup_test/startup_test.html +++ b/startup_test/startup_test.html @@ -36,24 +36,39 @@ - ***** END LICENSE BLOCK ***** --> - -
+var gLoaded = false; +var gPainted = false; +function test () { + if (gLoaded && gPainted) { var now = (new Date()).getTime(); var begin = document.location.search.split('=')[1]; // ?begin=nnnnn var startupTime = now - begin; - document.write('\n\nStartup time = ' + startupTime + ' ms