Closed Bug 857552 Opened 11 years ago Closed 3 years ago

onclick of notification not fired when outside of app

Categories

(Firefox for Android Graveyard :: General, defect)

20 Branch
ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: marcuskrahl, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130307023931

Steps to reproduce:

1. Open Firefox for Android and go to https://developer.mozilla.org/samples/domref/desktopnotification.html
2. Click on the link to create a notification
3. Leave Firefox and switch to another app or the home screen
4. Click on the toast message of firefox

(Tested on a Samsung Galaxy S III with Android 4.1.2)


Actual results:

Firefox opens again but the relevant events (notification.onclick and notification.onclose) are not fired


Expected results:

Firefox opens again and notification.onclick and notification.onclose are fired.
OS: Windows 7 → Android
Hardware: x86 → ARM
The same thing occurs if I click the toast notification from another tab. Instead of switching to the corresponding tab and firing the events nothing happens
I see the intent in console on-tap; perhaps a problem with handleNotification?

I/ActivityManager(  519): START u0 {act=org.mozilla.gecko.ACTION_ALERT_CALLBACK dat=alert:/1050698552?name=desktop-notification:6&cookie=desktop-notification:6 flg=0x10000000 cmp=org.mozilla.fennec/.App bnds=[0,151][768,279]} from pid -1

another test

http://people.mozilla.org/~mwargers/tests/dom/moznotification.htm
Status: UNCONFIRMED → NEW
Ever confirmed: true
blocking-b2g: --- → leo?
Not a critical regression in 1.1, bumping to koi? for backlog consideration in 1.2.
blocking-b2g: leo? → koi?
Unrelated to Firefox OS - pulling nom.
blocking-b2g: koi? → ---
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.