Bug 379233 - Pageload tests should flush out layout before timing load end

Bustage fix, backing out patch to check offset (attempt #3) - stalling talos boxes
p/r=anodelman


git-svn-id: svn://10.0.0.236/trunk@255632 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
anodelman%mozilla.com
2008-12-23 22:31:28 +00:00
parent b2b0902364
commit f940e8ee76

View File

@@ -290,21 +290,11 @@ function plLoadHandler(evt) {
if (timeout > 0) {
clearTimeout(timeoutEvent);
}
var docElem = frames["content"].document.documentElement;
var width;
if ("getBoundingClientRect" in docElem) {
width = docElem.getBoundingClientRect().width;
} else if ("offsetWidth" in docElem) {
width = docElem.offsetWidth;
}
var end_time = Date.now();
var time = (end_time - start_time);
// does this page want to do its own timing?
// if so, we shouldn't be here
if (plPageFlags() & TEST_DOES_OWN_TIMING) {
dumpLine("tp: Bubbling onload handler used with page that does its own timing?");
plStop(true);