Commit Graph
96 Commits
Author SHA1 Message Date
Daniel Holbert 3073bdc4ca Bug 2043345: Use MakeRefPtr to do allocation for various RefPtr variables in widget/windows. r=win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D302956
2026-05-29 03:43:03 +00:00
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
Silaghi a0f5cead4d Revert "Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel" for causing bc leackcheck at browser/components/shell
This reverts commit 63f5069524.
2026-05-14 14:31:36 +00:00
Antonio Borondo 63f5069524 Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel
Differential Revision: https://phabricator.services.mozilla.com/D299366
2026-05-14 09:41:33 +00:00
Silaghi d470de9303 Revert "Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel" for causing bc failures at /components/asrouter
This reverts commit 48749f38de.
2026-05-14 09:01:46 +00:00
Antonio Borondo 48749f38de Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel
Differential Revision: https://phabricator.services.mozilla.com/D299366
2026-05-14 07:43:22 +00:00
Serban Stanca 35f2c77b1f Revert "Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel" for causing build bustages in ToastNotification.cpp.
This reverts commit a8a15f9322.
2026-05-13 23:59:07 +00:00
Antonio Borondo a8a15f9322 Bug 2038177 - Suppress ASRouter toast notifications if full-screen mode is enabled r=win-reviewers,omc-reviewers,saschanaz,aminomancer,handyman,nrishel
Differential Revision: https://phabricator.services.mozilla.com/D299366
2026-05-13 22:41:46 +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
Max Christian Pohle 01b281b23e Bug 1963712 - Allow GIF images in Windows Toast Notifications, r=nrishel,win-reviewers,saschanaz,omc-reviewers,aminomancer
To test this change use:
  ./mach xpcshell-test widget/windows/tests/unit/test_windows_alert_service.js

Differential Revision: https://phabricator.services.mozilla.com/D274462
2026-02-26 04:38:28 +00:00
Cristina Horotan 64db10fc61 Revert "Bug 2013426, Bug 1963712 - Download images directly from the Messaging System for Windows Notifications, r=nrishel,omc-reviewers,win-reviewers,saschanaz,aminomancer" for causing xpcshell failures on test_backgroundtask_experiments.js
This reverts commit 40c8cb96f7.

Revert "Bug 1963712 - Allow GIF images in Windows Toast Notifications, r=nrishel,win-reviewers,saschanaz,omc-reviewers,aminomancer"

This reverts commit 4cd7bc1434.
2026-02-25 23:42:25 +00:00
Max Christian Pohle 4cd7bc1434 Bug 1963712 - Allow GIF images in Windows Toast Notifications, r=nrishel,win-reviewers,saschanaz,omc-reviewers,aminomancer
To test this change use:
  ./mach xpcshell-test widget/windows/tests/unit/test_windows_alert_service.js

Differential Revision: https://phabricator.services.mozilla.com/D274462
2026-02-25 22:32:54 +00:00
Serban Stanca 3fa209f770 Revert "Bug 2013426 - Download images directly from the Messaging System for Windows Notifications, r=nrishel,omc-reviewers,win-reviewers,saschanaz,aminomancer" for causing xpcshell failures in test_backgroundtask_experiments.js.
This reverts commit db88d7e99c.

This reverts commit a387c9ef03.
2026-02-17 22:16:16 +00:00
Max Christian Pohle a387c9ef03 Bug 1963712 - Allow GIF images in Windows Toast Notifications, r=nrishel,win-reviewers,saschanaz,omc-reviewers,aminomancer
To test this change use:
  ./mach xpcshell-test widget/windows/tests/unit/test_windows_alert_service.js

Differential Revision: https://phabricator.services.mozilla.com/D274462
2026-02-17 21:17:46 +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
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Kagami Sascha Rosylight 7fa0e7b78a Bug 1881043 - Part 2: Stop SendFinishing on all notification handler destruction path r=asuth,nalexander,nrishel
Destructing a handler doesn't always mean the corresponding notification is dead.

Given this patch is making RemoveHandler not call SendFinishing, it's being added to a few functions where needed.

Differential Revision: https://phabricator.services.mozilla.com/D202330
2025-06-21 15:17:28 +00:00
Sandor Molnar a74a8d0724 Revert "Bug 1881043 - Part 2: Stop SendFinishing on all notification handler destruction path r=asuth,nalexander,nrishel" for causing Mn failures @ test_persistent_notification_restart.py
This reverts commit c3170883a7.

Revert "Bug 1881043 - Part 1: Fix NotificationDB regression r=asuth"

This reverts commit 29f14711a0.
2025-06-21 05:47:58 +00:00
Kagami Sascha Rosylight c3170883a7 Bug 1881043 - Part 2: Stop SendFinishing on all notification handler destruction path r=asuth,nalexander,nrishel
Destructing a handler doesn't always mean the corresponding notification is dead.

Given this patch is making RemoveHandler not call SendFinishing, it's being added to a few functions where needed.

Differential Revision: https://phabricator.services.mozilla.com/D202330
2025-06-20 23:59:38 +00:00
Alexandru Marc 159d5cdae9 Revert "Bug 1881043 - Part 1: Stop SendFinishing on all notification handler destruction path r=asuth,nalexander,nrishel" for causing mass Marionette failures
This reverts commit 870357c9b5.
2025-06-20 10:13:02 +00:00
Kagami Sascha Rosylight 870357c9b5 Bug 1881043 - Part 1: Stop SendFinishing on all notification handler destruction path r=asuth,nalexander,nrishel
Destructing a handler doesn't always mean the corresponding notification is dead.

Given this patch is making RemoveHandler not call SendFinishing, it's being added to a few functions where needed.

Differential Revision: https://phabricator.services.mozilla.com/D202330
2025-06-19 22:30:23 +00:00
Lando a10d12b675 Bug 1095073: apply code formatting via Lando
# ignore-this-changeset
2025-06-11 12:56:00 +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
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 406900eed9 Bug 1948344 - Assign nsIAlertAction as a subject for action clicks r=nalexander,nrishel,win-reviewers
This would allow more conservative approach as we'll be able to reuse existing topics.

* alertactioncallback is now removed and instead fires alertclickcallback with a non-null subject.
* alerterror is now removed as observing alertshow/alertfinished together should suffice for that purpose (already being used by PNotification)

Not having separate alertactioncallback would also simplify future web API work, as it'll use the same click event but with an extra member in the event object. (https://notifications.spec.whatwg.org/#ref-for-dom-notificationevent-action)

Differential Revision: https://phabricator.services.mozilla.com/D239176
2025-02-25 14:57:47 +00:00
Kagami Sascha Rosylight e26b591db6 Bug 1890560 - Call UnregisterHandler earlier for the old handler r=asuth,nalexander,win-reviewers,gstoll
This makes sure we get the consistent behavior for every platform (except Android for now).

Differential Revision: https://phabricator.services.mozilla.com/D237022
2025-02-17 21:06:09 +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
Richard Marti 7205addf81 Bug 1922961 - Don't append the browser subdirectory in Thunderbird. r=win-reviewers,handyman
Differential Revision: https://phabricator.services.mozilla.com/D225443
2024-10-27 10:47:01 +00:00
Peter Van der Beken b0d751d865 Bug 1900930 - Make ENSURE_SUCCESS call WouldReportJSException. r=dom-core,win-reviewers,emilio,gstoll,edgar
Making ENSURE_SUCCESS return the result of StealNSResult() ensures that
exceptions in the ErrorResult are deal with. We can then signal that through
WouldReportJSException.

Differential Revision: https://phabricator.services.mozilla.com/D214792
2024-08-21 08:43:09 +00:00
Stanca Serban 68116687ca Backed out 6 changesets (bug 1900930) for causing xpcshell assertion failures in ErrorResult.h. CLOSED TREE
Backed out changeset 5234a13894b2 (bug 1900930)
Backed out changeset 638842494167 (bug 1900930)
Backed out changeset 36695bae43ed (bug 1900930)
Backed out changeset 23ab72aa4589 (bug 1900930)
Backed out changeset c89109c12d59 (bug 1900930)
Backed out changeset 2d3f52edb98a (bug 1900930)
2024-07-25 13:53:53 +03:00
Peter Van der Beken dfe3258373 Bug 1900930 - Make ENSURE_SUCCESS call WouldReportJSException. r=dom-core,win-reviewers,emilio,gstoll,edgar
Making ENSURE_SUCCESS return the result of StealNSResult() ensures that
exceptions in the ErrorResult are deal with. We can then signal that through
WouldReportJSException.

Differential Revision: https://phabricator.services.mozilla.com/D214792
2024-07-25 07:40:40 +00:00
Magnus Melin bbd67965e9 Bug 1898709 - Use GetMostRecentBrowserWindow() instead of GetMostRecentWindow(u"navigator:browser") to cater for Thunderbird's main window. r=nalexander
Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1863798-toast-notification-foreground-mail-client-m-c.patch

Fixed cases where general code assume main window is Firefox.
GetMostRecentBrowserWindow is getting "navigator:browser" for Firefox, so there is no change in behavior,
but it means more things will work for Thunderbird.

Differential Revision: https://phabricator.services.mozilla.com/D211520
2024-05-24 17:43:52 +00:00
Kagami Sascha Rosylight 8bd54b2382 Bug 1879112 - Check permission earlier and mark as closed if failed r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D201140
2024-04-22 16:59:56 +00:00
Sandor Molnar bf0112a5e0 Backed out 2 changesets (bug 1879112, bug 1879934) for causing assertion failures @ widget/windows/ToastNotification.cpp
Backed out changeset 2b3b6edc0cff (bug 1879112)
Backed out changeset 3dd0aa903d7f (bug 1879934)
2024-03-01 20:25:16 +02:00
Kagami Sascha Rosylight 6fa527337a Bug 1879112 - Check permission earlier and mark as closed if failed r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D201140
2024-03-01 11:27:53 +00:00
Nicholas Rishel 32025f3198 Bug 1870757 - Add image placement attribute to nsIWindowsAlertNotification. r=nalexander,mhughes
Adds option to specify Windows toast image placement for notifications popped from the system principal.

Differential Revision: https://phabricator.services.mozilla.com/D197029
2023-12-27 21:49:33 +00:00
Nicholas Rishel e32a9e9359 Bug 1871210 - Extend AlertNotification with WindowsAlertNotification for custom handling of alert buttons on Windows. r=nalexander,mhughes
When `nsIWindowsAlertNotification`'s `handleActions` property is set to true, actions are sent in the notification observer's `aData` field instead of the notification cookie.

Differential Revision: https://phabricator.services.mozilla.com/D196613
2023-12-27 21:49:32 +00:00
Emilio Cobos Álvarez c1cbae5730 Bug 1863035 - Implement a native WinRegistry key. r=win-reviewers,rkraesig
Use it to implement nsIWindowsRegKey, and to replace existing native
callers like WinUtils and nsLookAndFeel.

Differential Revision: https://phabricator.services.mozilla.com/D192756
2023-11-20 10:08:09 +00:00
Nicholas Rishel 29b2ebaf66 Bug 1859957 - Remove unnecessary dynamic loading of GetCurrentApplicationUserModelId. r=bytesized,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D191382
2023-10-24 17:05:29 +00:00
Masatoshi Kimura a3e419385e Bug 1844908 - Remove pre-Win10-specific codepath from widget/. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D184307
2023-07-26 08:52:54 +00:00