Closed Bug 1928702 Opened 3 months ago Closed 3 months ago

Reimplement showNotification() via IPC

Categories

(Core :: DOM: Notifications, task)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

Attachments

(12 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Because I found that focusing on showNotification() reduces a lot of complexity in bug 1891807. As the patch stack there proved that the IPC design works for both, we can implement one without worrying that the design won't match another.

Assignee: nobody → krosylight
Status: NEW → ASSIGNED

Moving functions that can be called from both Notification and IPC actors, that are needed for ActorDestroy.

Attachment #9434853 - Attachment description: Bug 1928702 - Part 8: Settle ShowResolver r=asuth → Bug 1928702 - Part 7: Settle ShowResolver r=asuth
Attachment #9434854 - Attachment description: Bug 1928702 - Part 9: Implement permission check r=asuth → Bug 1928702 - Part 8: Implement permission check r=asuth
Attachment #9434855 - Attachment description: Bug 1928702 - Part 10: Implement alertclickcallback behavior r=asuth → Bug 1928702 - Part 9: Implement alertclickcallback behavior r=asuth
Attachment #9434856 - Attachment description: Bug 1928702 - Part 11: Implement alertfinished behavior r=asuth → Bug 1928702 - Part 10: Implement alertfinished behavior r=asuth
Attachment #9434857 - Attachment description: Bug 1928702 - Part 12: Migrate ShowPersistentNotification to use IPC r=asuth → Bug 1928702 - Part 11: Migrate ShowPersistentNotification to use IPC r=asuth

macOS specific WPT failures: https://treeherder.mozilla.org/jobs?repo=try&test_paths=dom%2Fnotification&test_paths=notifications&revision=7f96ff02125f9c03a35c6ed467c9ee8d1de341eb&selectedTaskRun=fOiVUm_aQFWrhW1_4odgxg.0

(Caused by Close() doing it's unregister via ActorDestroy when called via alertfinished, but at that point it's already being unregistered. Skip unregister somehow while still doing unpersist.)

New: https://treeherder.mozilla.org/jobs?repo=try&revision=a4f525b9610c6180b27dd3efa5f0d7a12b631edc

Flags: needinfo?(krosylight)
Flags: needinfo?(krosylight)
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/93937caf6d13 Part 1: Add skeleton PNotification r=asuth https://hg.mozilla.org/integration/autoland/rev/bb63792c3333 Part 2: Create PNotification via PBackground r=asuth https://hg.mozilla.org/integration/autoland/rev/984f6e687ff5 Part 3: Move more functions to NotificationUtils r=asuth https://hg.mozilla.org/integration/autoland/rev/5a94b945a3ad Part 4: Implement ActorDestroy r=asuth https://hg.mozilla.org/integration/autoland/rev/a497ddb030f6 Part 5: Implement RecvShow r=asuth https://hg.mozilla.org/integration/autoland/rev/3daeacd08336 Part 6: Move NotificationObserver functions to NotificationUtils r=asuth https://hg.mozilla.org/integration/autoland/rev/f318fe78ff14 Part 7: Settle ShowResolver r=asuth https://hg.mozilla.org/integration/autoland/rev/56ab49acff35 Part 8: Implement permission check r=asuth https://hg.mozilla.org/integration/autoland/rev/33642b1c547b Part 9: Implement alertclickcallback behavior r=asuth https://hg.mozilla.org/integration/autoland/rev/622a66cdac2e Part 10: Implement alertfinished behavior r=asuth https://hg.mozilla.org/integration/autoland/rev/984db15bc9e2 Part 11: Migrate ShowPersistentNotification to use IPC r=asuth https://hg.mozilla.org/integration/autoland/rev/1bb3c36a15c3 Part 12: Add extra coverage for Glean metrics r=asuth
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49035 for changes under testing/web-platform/tests

Backed out for causing gv-junit failures on OpenWindowTest#openWindowNullResult

Backout link

Push with failures

Failure log

Flags: needinfo?(krosylight)
Upstream PR was closed without merging
Flags: needinfo?(krosylight)

Now that showNotification resolves from parent process, adding delegate after a resolved showNotification is too late.

Attachment #9436438 - Attachment is obsolete: true
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cc25e5c94813 Part 1: Add skeleton PNotification r=asuth https://hg.mozilla.org/integration/autoland/rev/1f3365d25033 Part 2: Create PNotification via PBackground r=asuth https://hg.mozilla.org/integration/autoland/rev/22abfa77d4fc Part 3: Move more functions to NotificationUtils r=asuth https://hg.mozilla.org/integration/autoland/rev/807f1d1ada66 Part 4: Implement ActorDestroy r=asuth https://hg.mozilla.org/integration/autoland/rev/fca3921d09a5 Part 5: Implement RecvShow r=asuth https://hg.mozilla.org/integration/autoland/rev/bde8ca8fd963 Part 6: Move NotificationObserver functions to NotificationUtils r=asuth https://hg.mozilla.org/integration/autoland/rev/0f64abe35d62 Part 7: Settle ShowResolver r=asuth https://hg.mozilla.org/integration/autoland/rev/10bb5f41f44b Part 8: Implement permission check r=asuth https://hg.mozilla.org/integration/autoland/rev/11a3c2c86a8e Part 9: Implement alertclickcallback behavior r=asuth https://hg.mozilla.org/integration/autoland/rev/c942992fa981 Part 10: Implement alertfinished behavior r=asuth https://hg.mozilla.org/integration/autoland/rev/bda570180adf Part 11: Migrate ShowPersistentNotification to use IPC r=asuth https://hg.mozilla.org/integration/autoland/rev/3c174ea10f04 Part 12: Add extra coverage for Glean metrics r=asuth
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1891705
Regressions: 1931978
Duplicate of this bug: 1330943
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: