[ServiceWorker] client.focus() brings wrong activity to the front

RESOLVED INACTIVE

Status

()

defect
RESOLVED INACTIVE
a year ago
9 months ago

People

(Reporter: jovan.gerodetti, Unassigned)

Tracking

(Blocks 1 bug)

Firefox 60
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:59.0) Gecko/20100101 Firefox/59.0
Build ID: 20180128191456

Steps to reproduce:

1. open the Telegram Web PWA
2. connect to the PWA via the webIDE
3. go back to the homescreen and run this line in the console:
navigator.serviceWorker.ready.then(reg => reg.showNotification('testx', { body: 123, tag: 'test', data: {} }));
4. a notification pops up, click it
5. after a moment telegram web comes to the front
6. open the nightly main activity
7. repeat step 3. and 4. 


Actual results:

The nightly main activity is brought to the front. It always brings the last viewed activity to the front, if an other PWA is viewed while taping the notification, nothing happens. 


Expected results:

The activity of the PWA the service worker belongs to should be brought to the front.
(Reporter)

Updated

a year ago
Flags: needinfo?(droeh)
Thanks, I'll look into what's going on here.
Flags: needinfo?(droeh)
(Reporter)

Comment 2

10 months ago
What is the priority of this issue?
Flags: needinfo?(dharvey)
Hey Sebastian, given I don't work on Android at the moment I don't feel its my place to be prioritising yalls work, could we get a new triage owner for this module? Cheers
Flags: needinfo?(dharvey) → needinfo?(s.kaspari)
Depends on: 1470082
> Hey Sebastian, given I don't work on Android at the moment I don't feel its my place to be prioritising yalls work, could we get a new triage owner for this module? Cheers

Please file an issue against bugzilla.mozilla.org > Administration to get yourself removed and the triage owner cleared. Fennec is in maintenance mode and most components do not have an active maintainer anymore.
Flags: needinfo?(s.kaspari)
Closing per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Contact :susheel if you think this bug should be re-opened
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 months ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.