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
'); + document.write('\n\nStartup time = ' + startupTime + ' ms
'); now = (new Date()).getTime(); if (window.dump) { dumpLog('__start_report' + startupTime + '__end_report\n\n' + '__startTimestamp' + now + '__endTimestamp\n'); } goQuitApplication(); window.close(); -"> - + } +} +function loaded() { + gLoaded = true; + test(); +} +function painted() { + window.removeEventListener("MozAfterPaint", painted, false); + gPainted = true; + test(); +} +window.addEventListener("MozAfterPaint", painted, false); + + diff --git a/startup_test/twinopen/child-window.html b/startup_test/twinopen/child-window.html --- a/startup_test/twinopen/child-window.html +++ b/startup_test/twinopen/child-window.html @@ -1,5 +1,27 @@ - + + + + +