Closed Bug 648882 Opened 14 years ago Closed 14 years ago

TabPriorityQueue updates tabItems when UI is busy

Categories

(Firefox Graveyard :: Panorama, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 6

People

(Reporter: ttaubert, Assigned: ttaubert)

Details

Attachments

(1 file, 9 obsolete files)

The condition is now: if (this.isPaintingPaused() || !UI.isIdle) and should be: if (this.isPaintingPaused() || !UI.isIdle()) We should add a test to verify that no tabItem updates are done when resizing or moving items.
Summary: TabPriorityQueue updates when UI is busy → TabPriorityQueue updates tabItems when UI is busy
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #524979 - Flags: feedback?(raymond)
Comment on attachment 524979 [details] [diff] [review] patch v1 + EventUtils.synthesizeMouse(container, 5, 5, {type: "mousedown"}, cw); + EventUtils.synthesizeMouse(container, 40, 20, {type: "mousemove"}, cw); + EventUtils.synthesizeMouse(container, 20, 20, {type: "mouseup"}, cw); The above repeats twice, might be good to write a helper function. f+
Attachment #524979 - Flags: feedback?(raymond) → feedback+
Attached patch patch v2 (obsolete) — Splinter Review
Attachment #524979 - Attachment is obsolete: true
Attachment #525095 - Flags: review?(ian)
Comment on attachment 525095 [details] [diff] [review] patch v2 That's a pretty slick test :)
Attachment #525095 - Flags: review?(ian) → review+
Attached patch patch for checkin (obsolete) — Splinter Review
Attachment #525095 - Attachment is obsolete: true
Keywords: checkin-needed
Attachment #525923 - Attachment is obsolete: true
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: fixed-in-cedar
Target Milestone: --- → Firefox 6
Whiteboard: fixed-in-cedar
Attached patch patch v3 (obsolete) — Splinter Review
Added another test for another issue fixed with this patch.
Attachment #525983 - Attachment is obsolete: true
Attachment #526118 - Flags: feedback?(raymond)
Comment on attachment 526118 [details] [diff] [review] patch v3 Looks good. Can we merge two tests file into one?
Attachment #526118 - Flags: feedback?(raymond) → feedback+
Attached patch patch v4 (obsolete) — Splinter Review
(In reply to comment #11) > Looks good. Can we merge two tests file into one? Of course, don't know why I split them :)
Attachment #526118 - Attachment is obsolete: true
Attachment #526179 - Flags: review?(ian)
Attached patch patch v5 (obsolete) — Splinter Review
Attachment #526179 - Attachment is obsolete: true
Attachment #526179 - Flags: review?(ian)
Attachment #526333 - Flags: review?(ian)
Comment on attachment 526333 [details] [diff] [review] patch v5 Looks good.
Attachment #526333 - Flags: review?(ian) → review+
Attached patch patch for checkin (obsolete) — Splinter Review
Attachment #526333 - Attachment is obsolete: true
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [fixed in cedar]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in cedar]
You should not use setTimeout(func, value) with value>0 if you do not want your test to be flaky.
Attached patch patch v6 (without setTimeout) (obsolete) — Splinter Review
(In reply to comment #20) > You should not use setTimeout(func, value) with value>0 if you do not want your > test to be flaky. Good to know, removed.
Attachment #527023 - Attachment is obsolete: true
Attachment #527343 - Flags: feedback?(raymond)
Comment on attachment 527343 [details] [diff] [review] patch v6 (without setTimeout) Looks good
Attachment #527343 - Flags: feedback?(raymond) → feedback+
Attachment #527343 - Flags: review?(ian)
Comment on attachment 527343 [details] [diff] [review] patch v6 (without setTimeout) Review of attachment 527343 [details] [diff] [review]: Very clever :)
Attachment #527343 - Flags: review?(ian) → review+
Attachment #527343 - Attachment is obsolete: true
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [fixed in cedar]
Pushed: http://hg.mozilla.org/mozilla-central/rev/4e7e81ad7525 Thank you for fixing the random orange Tim :)
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in cedar]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: