Closed
Bug 496782
Opened 15 years ago
Closed 15 years ago
browser_sanitizeDialog.js calls finish() twice
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 3.6a1
People
(Reporter: Gavin, Assigned: adw)
Details
(Keywords: fixed1.9.1, Whiteboard: [fixed1.9.1rc1])
Attachments
(1 file)
1.08 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
I discovered this while working on bug 492467. That patch changes the browser chrome test harness to output test results as they are generated, instead of lumping them all together in one big dump() at the end. browser_sanitizeDialog.js seems to be calling finish() twice, and running tests after the first call to finish() (i.e. after we've run a few subsequent tests). The problem here seems to be the last test specifically, which triggers two window openings. One easy way to see the problem is to add a dump() next to the tests call to finish(), and then run only that test: runtests.py --browser-chrome --test-path=browser/base/content/test/browser_sanitizeDialog.js --autorun You'll see the dump() output twice in the log results, once before the log output (i.e. before the first call to finish()) and once after.
Assignee | ||
Comment 1•15 years ago
|
||
Whoops, that last test was added later, and I forgot how my own test works. :O The problem is that each time the CRH window is closed, doNextTest() is automatically called, which calls finish() if there are no more tests. The last test opens the window twice => two window closings & no more tests either time => double the finish(). This patch simply breaks the test in two.
Reporter | ||
Comment 2•15 years ago
|
||
Comment on attachment 382017 [details] [diff] [review] patch [Checkin: Comment 5] Makes sense - I've tested this and it does solve the issue.
Attachment #382017 -
Flags: review+
Assignee | ||
Updated•15 years ago
|
Attachment #382017 -
Flags: review?(johnath)
Assignee | ||
Comment 3•15 years ago
|
||
Comment on attachment 382017 [details] [diff] [review] patch [Checkin: Comment 5] I think Gavin's review is sufficient...?
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 4•15 years ago
|
||
Yeah, just wasn't sure whether you cared that johnath look at it specifically.
Comment 5•15 years ago
|
||
Comment on attachment 382017 [details] [diff] [review] patch [Checkin: Comment 5] http://hg.mozilla.org/mozilla-central/rev/31ffc4999a4d http://hg.mozilla.org/releases/mozilla-1.9.1/rev/727797a42972
Attachment #382017 -
Attachment description: patch → patch
[Checkin: Comment 5]
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Keywords: checkin-needed → fixed1.9.1
Resolution: --- → FIXED
Whiteboard: [fixed1.9.1...]
Target Milestone: --- → Firefox 3.6a1
Updated•15 years ago
|
Whiteboard: [fixed1.9.1...] → [fixed1.9.1rc1]
You need to log in
before you can comment on or make changes to this bug.
Description
•