Closed Bug 1930676 Opened 3 months ago Closed 3 months ago

Replace MainThreadNotificationObserver with PNotification

Categories

(Core :: DOM: Notifications, task)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

(Regressed 1 open bug)

Details

Attachments

(8 files, 2 obsolete files)

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

Should be an easier step before we completely remove NotificationRef.

Depends on: 1928702

This patch opens an actor in the main thread just because mIsClosed is still a main thread controlled member. It will change to a target thread controlled one when one of the child patches implements Send/RecvShow.

Note that this makes showNotification() even slower and causes WPT failure for now, but that's purely a timing issue that will also be fixed by the Send patch.

Attachment #9436889 - Attachment is obsolete: true
Attachment #9436887 - Attachment description: WIP: Bug 1930676 - Part 1: Add skeleton PNotification → WIP: Bug 1930676 - Part 1: Add skeleton PNotification functions
Attachment #9436888 - Attachment description: WIP: Bug 1930676 - Part 3: Implement RecvClose → WIP: Bug 1930676 - Part 2: Remove MainThreadNotificationObserver
Attachment #9436890 - Attachment description: WIP: Bug 1930676 - Part 8: Implement RecvNotifyClick/FireClickEvent → WIP: Bug 1930676 - Part 3: Implement RecvNotifyClick

An error should still trigger unpersist.

Attachment #9436887 - Attachment description: WIP: Bug 1930676 - Part 1: Add skeleton PNotification functions → WIP: Bug 1930676 - Part 3: Add skeleton PNotification functions
Attachment #9436890 - Attachment description: WIP: Bug 1930676 - Part 3: Implement RecvNotifyClick → WIP: Bug 1930676 - Part 5: Implement RecvNotifyClick
Attachment #9436888 - Attachment description: WIP: Bug 1930676 - Part 2: Remove MainThreadNotificationObserver → WIP: Bug 1930676 - Part 8: Remove MainThreadNotificationObserver
Attachment #9436891 - Attachment is obsolete: true
Attachment #9437234 - Attachment description: WIP: Bug 1930676 - Part 1: Remove redundant promise argument from CreateActor → Bug 1930676 - Part 1: Remove redundant promise argument from CreateActor r=asuth
Attachment #9437235 - Attachment description: WIP: Bug 1930676 - Part 2: Always unpersist on alertfinished → Bug 1930676 - Part 2: Always unpersist on alertfinished r=asuth
Attachment #9436887 - Attachment description: WIP: Bug 1930676 - Part 3: Add skeleton PNotification functions → Bug 1930676 - Part 3: Add skeleton PNotification functions r=asuth
Attachment #9437236 - Attachment description: WIP: Bug 1930676 - Part 4: Implement RecvClose → Bug 1930676 - Part 4: Implement RecvClose r=asuth
Attachment #9436890 - Attachment description: WIP: Bug 1930676 - Part 5: Implement RecvNotifyClick → Bug 1930676 - Part 5: Implement RecvNotifyClick r=asuth
Attachment #9437237 - Attachment description: WIP: Bug 1930676 - Part 6: Implement Child::ActorDestroy → Bug 1930676 - Part 6: Implement Child::ActorDestroy r=asuth
Attachment #9437238 - Attachment description: WIP: Bug 1930676 - Part 7: Implement NotificationChild::FrozenCallback → Bug 1930676 - Part 7: Implement NotificationChild::FrozenCallback r=asuth
Attachment #9436888 - Attachment description: WIP: Bug 1930676 - Part 8: Remove MainThreadNotificationObserver → Bug 1930676 - Part 8: Remove MainThreadNotificationObserver r=asuth
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3cd49ea657b5 Part 1: Remove redundant promise argument from CreateActor r=asuth https://hg.mozilla.org/integration/autoland/rev/affda5c4bd6e Part 2: Always unpersist on alertfinished r=asuth https://hg.mozilla.org/integration/autoland/rev/3bb3905cd739 Part 3: Add skeleton PNotification functions r=asuth https://hg.mozilla.org/integration/autoland/rev/4d359273a778 Part 4: Implement RecvClose r=asuth https://hg.mozilla.org/integration/autoland/rev/284f9a865487 Part 5: Implement RecvNotifyClick r=asuth https://hg.mozilla.org/integration/autoland/rev/6aa0bf3fc85f Part 6: Implement Child::ActorDestroy r=asuth https://hg.mozilla.org/integration/autoland/rev/b4281687df45 Part 7: Implement NotificationChild::FrozenCallback r=asuth https://hg.mozilla.org/integration/autoland/rev/146e61d3a560 Part 8: Remove MainThreadNotificationObserver r=asuth
Regressions: 1938568
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: