gecko-dev/dom/notification
Emilio Cobos Álvarez b6728cedb7 Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp
Right now there's some duplicated code with the focus manager and the
DOMWindowFocus event.

Android didn't handle the new framefocusrequested event, so the test-cases in
bug 416771 still didn't work there.

I think using the focus manager codepath everywhere is preferable. I confirmed
manually that the stuff that sent DOMWindowFocus events still works as expected
with this patch (i.e., switching to the right tab when you click on a
notification, etc.).

This fixes it so that it works in Fennec, and it sends the focus events right in
GeckoView Example (i.e., we get here[1] properly).

The snippet that Snorp provided on IRC to implement the "bring activity to
front" stuff (`startActivity(getIntent())`) didn't actually work for me, but I
confirmed that the right message is sent when the focus is requested, and that
we get there.

[1]: https://searchfox.org/mozilla-central/rev/952521e6164ddffa3f34bc8cfa5a81afc5b859c4/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#503

Depends on D32353

Differential Revision: https://phabricator.services.mozilla.com/D32354

--HG--
extra : moz-landing-system : lando
2019-06-03 19:42:28 +00:00
..
new Bug 1547877 - enable configuration of new Notification Store implementation r=mossop,lina 2019-05-02 23:02:13 +00:00
old Bug 1547877 - enable configuration of new Notification Store implementation r=mossop,lina 2019-05-02 23:02:13 +00:00
test Bug 1547877 - enable configuration of new Notification Store implementation r=mossop,lina 2019-05-02 23:02:13 +00:00
Notification.cpp Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp 2019-06-03 19:42:28 +00:00
Notification.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
NotificationEvent.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
NotificationEvent.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
NotificationStorage.jsm Bug 1509042 - Enable Eslint for dom/notification (automatic changes) r=mrbkap 2019-02-16 14:15:39 +00:00
components.conf Bug 1524688: Part 51 - Convert NotificationStorage to static registration. r=mconley 2019-01-30 11:27:51 -08:00
moz.build Bug 1547877 - enable configuration of new Notification Store implementation r=mossop,lina 2019-05-02 23:02:13 +00:00