Closed
Bug 910997
Opened 11 years ago
Closed 11 years ago
More than 1 Notification doesn't close if an alert is used on Notification onclose
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Firefox OS Graveyard
Gaia::System
Tracking
(blocking-b2g:koi+)
VERIFIED
FIXED
blocking-b2g | koi+ |
People
(Reporter: caiolima, Unassigned)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release)
Build ID: 20130814063812
Steps to reproduce:
1. Open the "new Notification" from UItest
2. Open more than 1 Notification
3. Click on "Close all notification"
Actual results:
All the |onclose| functions are called, but only one notification is closed.
Expected results:
All notification should be closed
Reporter | ||
Comment 1•11 years ago
|
||
I've tested it with the patch https://bugzilla.mozilla.org/attachment.cgi?id=796122 applied
Updated•11 years ago
|
Blocks: b2g-notifications
Comment 3•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #2)
> I'd like to know if that happens in 1.1.
This isn't possible to reproduce on 1.1 - Web Notifications API is enabled on 1.2 or later.
Keywords: qawanted
Comment 4•11 years ago
|
||
Jason> I mean, with the notifications we have in 1.1.
If we have several notifications from the same app (eg: several missing calls, several sms), does "closing all notification" close them all ?
Keywords: qawanted
Updated•11 years ago
|
QA Contact: dsubramanian
Comment 5•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #4)
> If we have several notifications from the same app (eg: several missing
> calls, several sms), does "closing all notification" close them all ?
Hello Julien,
I had 15 notifications from screenshots, missed calls and SMS. Tapping on "Clear All" on the notification bar, clears all the notification. I was not able to repro the bug as per description.
Environmental variables used for testing:
Leo Build ID: 20130830041201
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/2fb19341d934
Gaia: 577ab5105af418efc8ded00798fd3644b3dac674
Platform Version: 18.1
Keywords: qawanted
Reporter | ||
Comment 6•11 years ago
|
||
The "clear all" from Notification Center doesn't call the "onclose" method of notification. I guess that it's a case of bug https://bugzilla.mozilla.org/show_bug.cgi?id=908978 but to MozNotification.
I guess that the onclose should be called, because the notification is being closed anyway. What do you think?
Reporter | ||
Comment 7•11 years ago
|
||
WIP
It's solving partially the problem, but I don't guess that is the best solution.
As I said in PR, I don't understand why the lines below the |window.dispatch(event)| aren't being executed.
Could anyone give an idea?
Attachment #798131 -
Flags: review?(reuben.bmo)
Attachment #798131 -
Flags: review?(anygregor)
Comment 8•11 years ago
|
||
Comment on attachment 798131 [details] [review]
bug-910997.txt
Sorry I took this long to reply, this request somehow fell through the cracks of my bugmail. I'm really not qualified to review this code, though, so I'm forwarding this to a Gaia System app peer.
Attachment #798131 -
Flags: review?(reuben.bmo) → feedback?(timdream)
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 9•11 years ago
|
||
Comment on attachment 798131 [details] [review]
bug-910997.txt
It looks like you have isolated the error but you didn't provide a proper fix.
Please look for error messages to see if why the function stop executing after that line. Thanks.
Attachment #798131 -
Flags: review?(anygregor)
Attachment #798131 -
Flags: feedback?(timdream)
Attachment #798131 -
Flags: feedback+
Comment 10•11 years ago
|
||
Gregor, would it be possible if some thing in shell.js throw and break the code here?
Flags: needinfo?(anygregor)
Updated•11 years ago
|
Whiteboard: [systemfe]
Updated•11 years ago
|
Whiteboard: [systemfe] → [systemsfe]
Reporter | ||
Comment 11•11 years ago
|
||
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #10)
> Gregor, would it be possible if some thing in shell.js throw and break the
> code here?
I've tested the patch from https://bugzilla.mozilla.org/show_bug.cgi?id=910915 It is working well. Jason, could you confirm it to me?
Confirming it, this bug is closed then!
Comment 12•11 years ago
|
||
Marking qawanted for a retest with landing of bug 910915.
Keywords: qawanted
QA Contact: dsubramanian
Updated•11 years ago
|
blocking-b2g: --- → koi?
Updated•11 years ago
|
QA Contact: nkot
Comment 13•11 years ago
|
||
have tested on the latest, 9/12, Buri build - the issue does not reproduce, tapping "Clear all" clears off all notifications (tested with 10 notifications: SMS ones, missed calls and calendar reminders)
Build ID: 20130912040201
Gecko: http://hg.mozilla.org/mozilla-central/rev/a98569f21abe
Gaia: 9ffd2899eb91388f7fc1ce6f7a895a6f5f922c05
Platform Version: 26.0a1
Keywords: qawanted
Comment 14•11 years ago
|
||
Closing per comment 13
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Updated•11 years ago
|
blocking-b2g: koi? → koi+
Updated•11 years ago
|
Flags: needinfo?(anygregor)
Assignee | ||
Updated•11 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•