Closed
Bug 539331
Opened 13 years ago
Closed 13 years ago
browser_sanitizeDialog.js is failing
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 3.7a1
People
(Reporter: Gavin, Assigned: roc)
Details
Attachments
(2 files)
7.41 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
13.17 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
Seems to be consistent since roc's checkins, but I can apparently reproduce it locally before then. Investigating further...
> TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_sanitizeDialog.js | Timed out > TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_tabfocus.js | Timed out > TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_tabs_owner.js | 4 tabs are open - Got 6, expected 4 > TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_tabs_owner.js | newly opened tab is selected - Got [object XULElement @ 0xab94e78 (native @ 0x9a72aa0)], expected [object XULElement @ 0xa300050 (native @ 0x9a4aa48)] > TEST-UNEXPECTED-FAIL | plugin process 28366 | automationutils.processLeakLog() | missing output line for total leaks! http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263354695.1263363466.31094.gz http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263353394.1263361760.13126.gz > TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_sanitizeDialog.js | Timed out > TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_tabfocus.js | Timed out > TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_tabs_owner.js | 4 tabs are open - Got 6, expected 4 > TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_tabs_owner.js | newly opened tab is selected - Got [object XULElement @ 0xa015590 (native @ 0x9a60198)], expected [object XULElement @ 0x8d015c0 (native @ 0xa0cfe10)] Are The browser_tabfocus.js failure and the browser_tabs_owner.js failure caused by this?
Oops, the latter log is here: http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263328560.1263338301.13901.gz
Assignee | ||
Comment 3•13 years ago
|
||
I think the problem is that the test just takes a while to run. It fires many assertions because during reflow nsGridRowLeafLayout::ComputeChildSizes calls nsGfxScrollFrameInner::GetActualScrollbarSizes, which calls GetUsedBorder on a dirty frame not currently being reflowed, which asserts. That's because we calculate the scrollbar widths and heights by comparing the scrollport to the scrollframe's padding-rect. We can instead compute the scrollbar widths and heights directly from the scrollbar boxes ... but only if we exclude the possibility of the scrollbars having margins. I think that's OK.
Comment 4•13 years ago
|
||
(In reply to comment #3) > I think the problem is that the test just takes a while to run. if that's the case, bug 529860 could help confirming it, enlarging the time for this test. Gavin, any possibility to review my b-c tests harness changes?
Assignee | ||
Comment 5•13 years ago
|
||
This fixes the timeout for me, by making the assertions go away, by making GetActualScrollbarSizes only look at the scrollbar frame mRects. We might possibly still have intermittent problems with the test taking too long. It needs a higher timeout limit or else should be broken up into smaller tests.
Assignee: nobody → roc
Attachment #421429 -
Flags: review?(matspal)
Assignee | ||
Updated•13 years ago
|
Whiteboard: [needs review]
Comment 6•13 years ago
|
||
Linux mozilla-central debug test everythingelse on 2010/01/13 04:51:47 http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263387107.1263392695.3409.gz
Updated•13 years ago
|
Attachment #421429 -
Flags: review?(matspal) → review+
Comment 7•13 years ago
|
||
Comment on attachment 421429 [details] [diff] [review] fix r=mats
Updated•13 years ago
|
Whiteboard: [needs review]
Assignee | ||
Updated•13 years ago
|
Whiteboard: [needs landing]
Comment 8•13 years ago
|
||
Pushed http://hg.mozilla.org/mozilla-central/rev/a3af8424d938
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → Firefox 3.7a1
Assignee | ||
Comment 9•13 years ago
|
||
I backed this out, it seemed to cause a mochitest failure: http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263433832.1263434805.21151.gz 75172 ERROR TEST-UNEXPECTED-FAIL | /tests/layout/xul/base/test/test_bug393970.xul | Cells (1,2) and (2,2) line up horizontally (with overflow-x: hidden; overflow-y: scroll;) - got 721, expected 716 75174 ERROR TEST-UNEXPECTED-FAIL | /tests/layout/xul/base/test/test_bug393970.xul | Cells (1,3) and (2,3) line up horizontally (with overflow-x: hidden; overflow-y: scroll;) - got 991, expected 976 75184 ERROR TEST-UNEXPECTED-FAIL | /tests/layout/xul/base/test/test_bug393970.xul | Cells (1,2) and (2,2) line up horizontally (with overflow-x: scroll; overflow-y: scroll;) - got 721, expected 716 75186 ERROR TEST-UNEXPECTED-FAIL | /tests/layout/xul/base/test/test_bug393970.xul | Cells (1,3) and (2,3) line up horizontally (with overflow-x: scroll; overflow-y: scroll;) - got 991, expected 976
Assignee | ||
Updated•13 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•13 years ago
|
||
Applies on top of the first patch. 1) create nsIScrollableFrame::GetScrollbarVisibility, which can be called anytime 2) save/restore mHasHorizontal/VerticalScrollbar when reflowing child content, so GetScrollbarVisibility works even during reflow of HTML (nsXULScrollFrame is already OK) 3) nsGridRowLeafLayout::ConsiderChildSizes calls GetScrollbarVisibility and GetDesiredScrollbarSizes to approximate GetActualScrollbarSizes in a way that's safe during reflow of the scrolled content 4) Changes various sites that call GetActualScrollbarSizes just to check visibility to use GetScrollbarVisibility instead.
Attachment #421616 -
Flags: review?(matspal)
Assignee | ||
Updated•13 years ago
|
Attachment #421616 -
Attachment description: Part 2: fix the bug by having nsCrossSiteListenerProxy treat 416 responses as non-errors for media loads → Part 2
Assignee | ||
Comment 11•13 years ago
|
||
Sorry, ignore the patch description in comment #10, that was accidental autocomplete
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263508774.1263510171.18227.gz Linux mozilla-central debug test mochitest-other on 2010/01/14 14:39:34 s: moz2-linux-slave20 TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_sanitizeDialog.js | Timed out
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263521091.1263522678.26349.gz Linux mozilla-central debug test mochitest-other on 2010/01/14 18:04:51 s: moz2-linux-slave20 TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/base/content/test/browser_sanitizeDialog.js | Timed out
Assignee | ||
Comment 14•13 years ago
|
||
Oops, I had a comment that somehow failed to make it to Bugzilla: The test failed because the first patch broke scrollable grid rowgroups. While we reflow the scrolled rowgroup, nsGridRowLeafLayout::ComputeChildSizes looks up the ancestor chain to discover the current state of the scrollbars in the ancestors. Before reflowing the scrolled content, nsXULScrollFrame sets its mScrollPort to reflect its current assumptions about scrollbar presence/absence, but it does NOT adjust the geometry of the scrollbars until the content has been completely reflowed. So before this patch we would return the correct GetActualScrollbarSizes even during reflow of nsXULScrollFrames, but with this patch we don't return the current GetActualScrollbarSizes when it's called during reflow.
Comment 15•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263547186.1263549166.14504.gz
Comment 16•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263571322.1263574112.6793.gz
Comment 17•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263585828.1263588366.9511.gz
Comment 18•13 years ago
|
||
Comment on attachment 421616 [details] [diff] [review] Part 2 Nice cleanup! r=mats Maybe GetActualScrollbarSizes should assert that: !box || !(box->GetStateBits() & NS_FRAME_FIRST_REFLOW) with "box" == mVScrollbarBox,mHScrollbarBox
Attachment #421616 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 19•13 years ago
|
||
I don't think we need to assert that. If the box hasn't been reflowed, its size will be 0,0, which is what GetActualScrollbarSizes should return.
Keywords: checkin-needed
Whiteboard: [needs landing]
Comment 20•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263664510.1263667061.9046.gz Linux mozilla-central debug test mochitest-other on 2010/01/16 09:55:10 s: moz2-linux-slave02
Comment 21•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263660598.1263662898.27091.gz Linux mozilla-central debug test mochitest-other on 2010/01/16 08:49:58 s: moz2-linux-slave41
Comment 22•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263682786.1263685672.12683.gz Linux mozilla-central debug test mochitest-other on 2010/01/16 14:59:46 s: moz2-linux-slave09
Comment 23•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263779176.1263780957.19414.gz Linux mozilla-central debug test mochitest-other on 2010/01/17 17:46:16 s: moz2-linux-slave06
Comment 24•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263796342.1263798788.17263.gz Linux mozilla-central debug test mochitest-other on 2010/01/17 22:32:22 s: moz2-linux-slave06
Comment 25•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263832804.1263835973.15836.gz
Comment 26•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263842483.1263845966.29214.gz Linux mozilla-central debug test mochitest-other on 2010/01/18 11:21:23 s: moz2-linux-slave16
Comment 27•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263841161.1263845857.27730.gz Linux mozilla-central debug test mochitest-other on 2010/01/18 10:59:21 s: moz2-linux-slave13
Comment 28•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263811141.1263813273.11718.gz Linux mozilla-central debug test mochitest-other on 2010/01/18 02:39:01 s: moz2-linux-slave13
Comment 29•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263847601.1263851206.22285.gz Linux mozilla-central debug test mochitest-other on 2010/01/18 12:46:41 s: moz2-linux-slave05
Comment 30•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/75bf0842156c http://hg.mozilla.org/mozilla-central/rev/51292fe9e5a9
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [needs landing]
You need to log in
before you can comment on or make changes to this bug.
Description
•