Bug 600108 - browser_click_content.js - timeout on linux desktop run [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Tue, 28 Sep 2010 17:01:01 -0400
changeset 66722 c9320434944814dd5421d5bbdb01eb61ad365e36
parent 66721 24dde4bba44c29f26252d59d79ff3c6f61c0e2ce
child 66723 b2197dd39de4270920e58a544bf4de9b9cbaa131
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs600108
Bug 600108 - browser_click_content.js - timeout on linux desktop run [r=mfinkle]
mobile/chrome/tests/browser_click_content.js
--- a/mobile/chrome/tests/browser_click_content.js
+++ b/mobile/chrome/tests/browser_click_content.js
@@ -94,16 +94,17 @@ function close() {
 function getBoundingContentRect(aElement) {
   if (!aElement)
     return new Rect(0, 0, 0, 0);
 
   let document = aElement.ownerDocument;
   while(document.defaultView.frameElement)
     document = document.defaultView.frameElement.ownerDocument;
 
+  let content = document.defaultView;
   let offset = Util.getScrollOffset(content);
   let r = aElement.getBoundingClientRect();
 
   // step out of iframes and frames, offsetting scroll values
   for (let frame = aElement.ownerDocument.defaultView; frame != content; frame = frame.parent) {
     // adjust client coordinates' origin to be top left of iframe viewport
     let rect = frame.frameElement.getBoundingClientRect();
     let left = frame.getComputedStyle(frame.frameElement, "").borderLeftWidth;