Closed Bug 350353 Opened 18 years ago Closed 18 years ago

notificationbox is racy

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mwu, Assigned: mwu)

References

(Blocks 1 open bug, )

Details

(Keywords: fixed1.8.1)

Attachments

(3 files, 3 obsolete files)

If notifications are added to the notificationbox too quickly, the notification box gets confused.
This patch makes notificationbox not depend on the completion of the animation.
Assignee: nobody → michael.wu
Status: NEW → ASSIGNED
Attachment #235961 - Flags: first-review?(enndeakin)
Make sure the notification is visible if we're killing its animation callback to put a new notification in.
Attachment #235961 - Attachment is obsolete: true
Attachment #235962 - Flags: first-review?(enndeakin)
Attachment #235961 - Flags: first-review?(enndeakin)
Last patch broke the animated closing. This version doesn't.
Attachment #235962 - Attachment is obsolete: true
Attachment #236013 - Flags: first-review?(enndeakin)
Attachment #235962 - Flags: first-review?(enndeakin)
Comment on attachment 236013 [details] [diff] [review]
Move important stuff out of animation callback, v3

This appears to be a branch patch, which doesn't have 343574 in it.

I tested the patch but it didn't seem to work properly when closing a notification when two were open, testing with http://xulplanet.com/ndeakin/tests/xts/notification/notificationbox-browser.xul
Attachment #236013 - Flags: first-review?(enndeakin) → first-review-
Ported to trunk version of notification.xml, tested/debugged with http://xulplanet.com/ndeakin/tests/xts/notification/notificationbox-browser.xul
Attachment #236013 - Attachment is obsolete: true
Attachment #236980 - Flags: first-review?(enndeakin)
Attachment #236980 - Flags: first-review?(enndeakin) → first-review+
Checking in toolkit/content/widgets/notification.xml;
/cvsroot/mozilla/toolkit/content/widgets/notification.xml,v  <--  notification.xml
new revision: 1.8; previous revision: 1.7
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 236980 [details] [diff] [review]
Move important stuff out of animation callback, v4

This patch is necessary if we want bug 348576. It fixes regressions due to the animation code that is used now and makes it possible to open two notifications at the same time without racing.
Attachment #236980 - Flags: approval1.8.1?
Attachment #236980 - Flags: approval1.8.1?
Comment on attachment 237775 [details] [diff] [review]
Move important stuff out of animation callback, v4 (branch)

a=schrep for regression fix in new functionality.
Attachment #237775 - Flags: approval1.8.1? → approval1.8.1+
Branch:
Checking in toolkit/content/widgets/notification.xml;
/cvsroot/mozilla/toolkit/content/widgets/notification.xml,v  <--  notification.xml
new revision: 1.1.2.7; previous revision: 1.1.2.6
done
Blocks: 352450
robert, is this the bug you were showing me today?
Hey Sir Seth,
This is for the race condition that mwu found.
bug 348576 is for getting the add-ons mgr. to use notificationbox.
I don't believe there is a bug for the notificationbox displaying full height then animating from a min height back to full height but I haven't searched for one as of yet. I have a couple of ideas of how this can be improved / fixed for 3.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: