64 Commits
Author SHA1 Message Date
Antonio Borondo b9d757b8d3 Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel,geckoview-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D299366
2026-05-20 14:33:10 +00:00
Atila Butkovits a24dd8d04a Revert "Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel,geckoview-reviewers,nalexander" for causing bustages in nsSystemAlertsService.
This reverts commit 3621d39ca2.
2026-05-20 13:19:23 +00:00
Antonio Borondo 3621d39ca2 Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel,geckoview-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D299366
2026-05-20 12:25:20 +00:00
Sylvestre Ledru 4f6b8b516d Bug 2023419 - Remove Emacs/Vim modelines from widget/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287877
2026-03-16 17:22:02 +00:00
Kagami Sascha Rosylight 305692f252 Bug 1369833 - Part 5: Remove showAlertNotification r=nalexander,nrishel,geckoview-reviewers,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D273575
2025-11-29 18:34:44 +00:00
agoloman d5e3e7cab7 Revert "Bug 1369833 - Part 5: Remove showAlertNotification r=nalexander,nrishel,geckoview-reviewers,win-reviewers,gstoll" for causing bc failures @browser_device_connected.js.
This reverts commit 446248523d.

Revert "Bug 1369833 - Part 4: Use initWithObject instead of showAlertNotification in browser/ r=firefox-desktop-core-reviewers ,Gijs"

This reverts commit 9ee3a6db7f.

Revert "Bug 1369833 - Part 3: Remove unused showAlertNotification in dom/notification/test r=asuth"

This reverts commit 153cd95271.

Revert "Bug 1369833 - Part 2: Use initWithObject instead of showAlertNotification for WebExtensions r=extension-reviewers,willdurand"

This reverts commit e36669b3f8.

Revert "Bug 1369833 - Part 1: Add a way to init with an object r=nalexander,tschuster"

This reverts commit 5e7addaf77.
2025-11-29 13:46:41 +00:00
Kagami Sascha Rosylight 446248523d Bug 1369833 - Part 5: Remove showAlertNotification r=nalexander,nrishel,geckoview-reviewers,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D273575
2025-11-29 11:04:02 +00:00
Kagami Sascha Rosylight 306b415424 Bug 1948752 - Part 4: Do not throw when Android closes the notification before opening r=asuth,nrishel,nalexander,geckoview-reviewers
D255956 started to close same-tagged notifications early and that caused test failure here. This introduces a way to tell that it's a close than error.

Differential Revision: https://phabricator.services.mozilla.com/D258261
2025-09-26 09:12:36 +00:00
Cristina Horotan 1fb59ff0b9 Revert "Bug 1948752 - Part 4: Do not throw when Android closes the notification before opening r=asuth,nrishel,nalexander,geckoview-reviewers" for causing wpt failures on shownotification.https.window.html
This reverts commit c978036a73.

Revert "Bug 1948752 - Part 3: Add GeckoAppShell.onNotificationShow r=geckoview-reviewers,android-reviewers,m_kato,jonalmeida,geckoview-api-reviewers,nika"

This reverts commit 8ed24aa7d6.

Revert "Bug 1948752 - Part 2: Return Deferred<Boolean> from onShowNotification based on success result r=android-reviewers,jonalmeida"

This reverts commit 5546fa01fe.
2025-08-02 05:32:12 +00:00
Kagami Sascha Rosylight c978036a73 Bug 1948752 - Part 4: Do not throw when Android closes the notification before opening r=asuth,nrishel,nalexander,geckoview-reviewers
D255956 started to close same-tagged notifications early and that caused test failure here. This introduces a way to tell that it's a close than error.

Differential Revision: https://phabricator.services.mozilla.com/D258261
2025-08-02 01:21:04 +00:00
Serban Stanca ef180ba9eb Revert "Bug 1948752 - Part 4: Do not throw when Android closes the notification before opening r=asuth,nrishel,nalexander,geckoview-reviewers" for causing junit failures.
This reverts commit 3989ae07be.

This reverts commit d1be6df136.

This reverts commit 4316367a58.
2025-08-02 00:01:26 +00:00
Kagami Sascha Rosylight 3989ae07be Bug 1948752 - Part 4: Do not throw when Android closes the notification before opening r=asuth,nrishel,nalexander,geckoview-reviewers
D255956 started to close same-tagged notifications early and that caused test failure here. This introduces a way to tell that it's a close than error.

Differential Revision: https://phabricator.services.mozilla.com/D258261
2025-08-01 22:43:44 +00:00
Serban Stanca 8877de52e5 Revert "Bug 1948752 - Part 4: Do not throw when Android closes the notification before opening r=asuth,nrishel,nalexander,geckoview-reviewers" for causing lints failures.
This reverts commit a9c75ace47.

This reverts commit 80516db731.

This reverts commit 7dd7954659.
2025-08-01 21:10:21 +00:00
Kagami Sascha Rosylight a9c75ace47 Bug 1948752 - Part 4: Do not throw when Android closes the notification before opening r=asuth,nrishel,nalexander,geckoview-reviewers
D255956 started to close same-tagged notifications early and that caused test failure here. This introduces a way to tell that it's a close than error.

Differential Revision: https://phabricator.services.mozilla.com/D258261
2025-08-01 18:17:51 +00:00
Kagami Sascha Rosylight 8ec01f9f34 Bug 1976269 - Part 2: Call NotificationHandler in AndroidAlerts::NotifyListener r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D256489
2025-07-28 12:44:22 +00:00
Kagami Sascha Rosylight 7d3ecfff80 Bug 1976269 - Part 1: Store notification origin to Parcelable r=geckoview-reviewers,geckoview-api-reviewers,owlish,ohall
Differential Revision: https://phabricator.services.mozilla.com/D257028
2025-07-28 12:44:18 +00:00
Kagami Sascha Rosylight 979ebda30b Bug 1878383 - Fire alertfinished in AndroidAlerts::CloseAlert r=emilio,geckoview-reviewers,owlish
I had a wrong assumption in D248312 that alertfinished will always be called by GeckoView, but turns out that each backend calls it immediately within CloseAlert implementation.

This aligns Android implementation with others, and bug 1975432 is filed for deduplication.

Differential Revision: https://phabricator.services.mozilla.com/D255956
2025-07-08 08:11:28 +00:00
Kagami Sascha Rosylight ba88eff869 Bug 1955343 - Part 2: Pass actions to GeckoView r=nrishel,geckoview-reviewers,android-reviewers,nika,geckoview-api-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D242583
2025-06-12 12:20:45 +00:00
Alexandru Marc 482800da14 Revert "Bug 1955343 - Part 2: Pass actions to GeckoView r=nrishel,geckoview-reviewers,android-reviewers,nika,geckoview-api-reviewers,ohall" for causing android build bustages @ GeckoWebNotificationDelegateTest
This reverts commit 42724e284b.
2025-06-11 15:59:21 +00:00
Kagami Sascha Rosylight 42724e284b Bug 1955343 - Part 2: Pass actions to GeckoView r=nrishel,geckoview-reviewers,android-reviewers,nika,geckoview-api-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D242583
2025-06-11 15:26:38 +00:00
pstanciu e7720106f6 Revert "Bug 1955343 - Part 2: Pass actions to GeckoView r=nrishel,geckoview-reviewers,android-reviewers,nika,geckoview-api-reviewers,ohall" for causing lint failures @CHANGELOG.md
This reverts commit ccfc04c4e4.
2025-06-11 15:15:12 +00:00
Kagami Sascha Rosylight ccfc04c4e4 Bug 1955343 - Part 2: Pass actions to GeckoView r=nrishel,geckoview-reviewers,android-reviewers,nika,geckoview-api-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D242583
2025-06-11 13:37:50 +00:00
Kagami Sascha Rosylight 79a02baca5 Bug 1095073 - Part 1: Add nsIAlertsService.GetHistory r=nalexander,nrishel,geckoview-reviewers,win-reviewers,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D209827
2025-06-11 12:55:46 +00:00
agoloman ff2649baa8 Revert "Bug 1955343 - Part 2: Pass actions to GeckoView r=nrishel,geckoview-reviewers,android-reviewers,nika,geckoview-api-reviewers,ohall" for causing gv-junit failures @WebNotificationTest#openWithActionsAndClickAction.
This reverts commit 171ee36954.
2025-06-09 20:01:12 +00:00
Kagami Sascha Rosylight 171ee36954 Bug 1955343 - Part 2: Pass actions to GeckoView r=nrishel,geckoview-reviewers,android-reviewers,nika,geckoview-api-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D242583
2025-06-09 18:41:11 +00:00
Kagami Sascha Rosylight 4db6b6e5e0 Bug 1965048 - Fire alertfinished for the previous same-tagged alert notification r=nalexander,geckoview-reviewers
Extracting from D242583 to land it separately.

Differential Revision: https://phabricator.services.mozilla.com/D248312
2025-05-08 04:06:13 +00:00
Kagami Sascha Rosylight 7612090ebe Bug 1953906 - Implement nsIAlertsService:[Pbm]Teardown r=nalexander,nrishel,geckoview-reviewers,win-reviewers,m_kato,jstutte
Longer term we should move this tracking fully to nsAlertsService, but given that:

* currently it's different how each alert backend tracks notification (e.g. only Windows has IsPrivate() and macOS has separate lists for pending/active alerts)
* consolidating that would probably require bigger changes

it would be nice to first centralize how the teardown step is triggered and then try consolidating further. (See also bug 1953657.)

Differential Revision: https://phabricator.services.mozilla.com/D241477
2025-03-21 09:52:31 +00:00
Kagami Sascha Rosylight 1ef9622910 Bug 1930506 - Remove nsIAlertsService::ShowPersistentNotification r=nalexander,geckoview-reviewers,win-reviewers,gstoll,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D228659
2024-11-13 08:11:36 +00:00
serge-sans-paille 5946338a6a Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato
MOZ_RUNINIT => initialized at runtime
MOZ_CONSTINIT => initialized at compile time
MOZ_GLOBINIT => initialized either at runtime or compile time, depending on template parameter, macro parameter etc
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.

Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-30 11:05:24 +00:00
Nicholas Rishel 35c2c30aae Bug 1787004 - Fix notifications not closing when notification.close() is called. r=nalexander,geckoview-reviewers,smaug,jonalmeida
This adds context to `CloseAlert()` such that explicitly closing the notification e.g. `notification.close()` can be differentiated from a tab or window implicitly closing the notification. This is necessary as we want notifications to persist after a tab or window is closed for Windows.

This change in behavior is necessary to match user expectations. Users expect notifications to persist in the system tray and do not expect notifications to be lost due to a tab being closed. The content of the message is more important than the interaction in that lens. This change is also necessary for parity with Chrome.

Differential Revision: https://phabricator.services.mozilla.com/D161024
2023-01-06 18:36:23 +00:00
Arturo Mejia 9ae2bddd1a Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-11-02 13:20:13 +00:00
Cristian Tuns bb87874291 Backed out changeset 6d8714cc305a (bug 1788720) for causing geckoview failures on clickNotificationParceled CLOSED TREE 2022-11-01 14:00:27 -04:00
Arturo Mejia cb80e7e873 Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-11-01 16:49:12 +00:00
Cosmin Sabou d175c475df Backed out changeset c7074f4cf73c (bug 1788720) for causing geckoview failures on PermissionDelegateTest. CLOSED TREE 2022-10-28 22:03:56 +03:00
Arturo Mejia 01ab5c25e4 Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-10-28 14:00:45 +00:00
Marian-Vasile Laza e45ffa454d Backed out changeset 9cda62240050 (bug 1788720) for causing linting failures. CLOSED TREE 2022-10-27 01:49:08 +03:00
Arturo Mejia d14493d6fb Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-10-26 21:56:06 +00:00
Agi Sferro f4825f907a Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 18:35:36 +00:00
Csoregi Natalia 932777215d Backed out 2 changesets (bug 1696145) for causing build bustage on notifications. CLOSED TREE
Backed out changeset 2e18b65dd133 (bug 1696145)
Backed out changeset 6d302afe732f (bug 1696145)
2021-04-20 20:13:56 +03:00
Agi Sferro b0e435b77a Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 16:38:45 +00:00
Simon Giesecke c7a36b5d58 Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin
Note that this patch only transforms the use of the nsDataHashtable type alias
to a directly equivalent use of nsTHashMap. It does not change the specification
of the hash key type to make use of the key class deduction that nsTHashMap
allows for in some cases. That can be done in a separate step, but requires more
attention.

Differential Revision: https://phabricator.services.mozilla.com/D106008
2021-03-10 10:47:47 +00:00
Simon Giesecke 95c38cc6b8 Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.

Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
Christoph Kerschbaumer 237268629c Bug 1680768: Remove unused argument aPrincipal within closeAlert() in nsIAlertsService.idl r=nika
Differential Revision: https://phabricator.services.mozilla.com/D98776
2020-12-07 17:44:34 +00:00
Simon Giesecke ab6f0a7137 Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Agi Sferro a2f4c07815 Bug 1649494 - Don't assume a notification has a URL. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D88165
2020-08-25 17:49:31 +00:00
Simon Giesecke a69d79b6db Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
James Willcox 5a20279539 Bug 1642345 - Add 'source' field to WebNotification r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D78168
2020-06-09 13:47:53 +00:00
Dorel Luca 8b4863352e Backed out changeset d52680bbda73 (bug 1642345) for Mochitest failures in toolkit/components/alerts/test/test_alerts_noobserve.html. CLOSED TREE 2020-06-08 23:50:35 +03:00
James Willcox 8dd4ab9fab Bug 1642345 - Add 'source' field to WebNotification r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D78168
2020-06-08 17:22:17 +00:00
Aaron Klotz 383ce64df3 Bug 1637452: Part 1 - Fix JNI includes in widget/android; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D75364
2020-05-15 17:04:10 +00:00