Closed
Bug 1202143
Opened 9 years ago
Closed 9 years ago
Notification.permissions incorrectly returns default when doorhanger says allow
Categories
(Core :: DOM: Push Subscriptions, defect)
Core
DOM: Push Subscriptions
Tracking
()
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox43 | --- | affected |
People
(Reporter: edwong, Assigned: wchen)
References
Details
Attachments
(1 file)
197.13 KB,
image/png
|
Details |
I'm on nightly and don't have reliable STR. 1. goto: http://people.mozilla.org/~ewong2/push-notification-test/ 2. click pop notification 3. click allow for session in doorhanger 4. repeat steps with (https site) https://people.mozilla.org/~ewong2/push-notification-test/ actual: notification returns 'default' even though the permissions doorhanger says 'allow' expected: it should say 'granted'
Reporter | ||
Comment 1•9 years ago
|
||
Figured out the steps, it's when a window can't be found. 1. goto: http://people.mozilla.org/~ewong2/push-notification-test/ 2. click pop notification 3. click allow for session in doorhanger 4. close all tabs but leave the notification displayed 5. click on notification banner (should launch 'mozilla.org' in a new tab') 6. nothing happens 7. goto step 1, 2 again. actual: notification.permission returns 'default' but it should return 'granted'
Comment 2•9 years ago
|
||
Vishy, are you able fto ind someone to look after this?
Flags: needinfo?(vkrishnamoorthy)
Comment 3•9 years ago
|
||
William said he could take this.
Assignee: nobody → wchen
Flags: needinfo?(vkrishnamoorthy)
Reporter | ||
Updated•9 years ago
|
Assignee | ||
Comment 4•9 years ago
|
||
Are the steps in comment 1 consistently reproducible for you? I haven't been able to reproduce on the latest nightly on mac (which looks like what you are using from the screen shot).
Flags: needinfo?(edwong)
Reporter | ||
Comment 5•9 years ago
|
||
:wchen - i just downloaded today's night and I can still repro every time. Let me re write it in more detail: 0. make sure your permissions are 'always ask' 1. goto: http://people.mozilla.org/~ewong2/push-notification-test/ 2. click pop notification button 3. click allow for session in door hanger permissions dialog 3b. a notification should appear saying 'Hi There' 4. close all tabs but leave the notification displayed 5. click on notification banner (should launch 'mozilla.org' in a new tab) 6. nothing happens 7. open a new tab and navigate to: http://people.mozilla.org/~ewong2/push-notification-test/ 8. click pop notification button result: you get: Notification.permission: default it should pop a permissions door hanger or return 'granted', but it doesn't. actual: notification.permission returns 'default' but it should return 'granted'
Flags: needinfo?(edwong)
Reporter | ||
Comment 6•9 years ago
|
||
This is fixed on the Mac Nightly. I can still repro on DevEdition, so Mattn's recent changes may have fixed it.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•