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)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox43 --- affected

People

(Reporter: edwong, Assigned: wchen)

References

Details

Attachments

(1 file)

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'
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'
Depends on: 1201571
Vishy, are you able fto ind someone to look after this?
Flags: needinfo?(vkrishnamoorthy)
William said he could take this.
Assignee: nobody → wchen
Flags: needinfo?(vkrishnamoorthy)
Blocks: 1201571
No longer depends on: 1201571
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)
: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)
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
See Also: → 1215222
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: