Open Bug 1875091 Opened 2 years ago Updated 2 years ago

Display WDBA notification using ASRouter trigger

Categories

(Toolkit :: Default Browser Agent, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: nalexander, Unassigned)

References

(Depends on 3 open bugs, Blocks 3 open bugs)

Details

(Whiteboard: [fidedi-wdba])

Attachments

(8 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

This ticket tracks using ASRouter to display the WDBA notification. This is part of the boilerplate required to make the notification data-driven and eventually remotely controlled via Nimbus.

This isn't ready because --backgroundtask backgroundupdate does not
yet handle this relaunch.

Depends on D198818

This registers the OnboardingMessageProvider for local messages, and
uses ASRouter to pop the notification, but it doesn't set up the
notification observer and it doesn't actually handle the relaunch (via
the remote protocol, eventually).

Depends on D198819

This is simply a convenience: backgroundtasks are short-lived and
don't generally want a -no-remote argument to avoid re-using
instances during development.

There's no browsing session and subsession in background task mode, so
avoid asking for session metadata and throwing an obscure date-parsing
exception.

Depends on D199148

This is simply a convenience: backgroundtasks are short-lived and
don't generally want a -no-remote argument to avoid re-using
instances during development.

There's no browsing session and subsession in background task mode, so
avoid asking for session metadata and throwing an obscure date-parsing
exception.

Depends on D199151

This was disabled out of an abundance of caution: the last thing we
want is a (long-lived) background task trying to open links for
browsing, for example.

However, the remote protocol is what the notificationserver.dll
relies on under Windows to ferry a notification interaction to a
running Firefox. We need it to handle notifications in background
tasks.

There should be no interaction between browsing windows and background
tasks because the "class name" used to identify candidate instances to the
remote protocol includes the relevant profile (see
https://searchfox.org/mozilla-central/rev/9c65def36af441133c75a44b126e65184b039b2f/toolkit/components/remote/RemoteUtils.h#15),
and will avoid "cross-talk" of this sort.

Depends on D199153

Comment on attachment 9375545 [details]
WIP: Bug 1875091 - Pre: Avoid a TelemetryUtils exception in background task mode.

Revision D199152 was moved to bug 1875907. Setting attachment 9375545 [details] to obsolete.

Attachment #9375545 - Attachment is obsolete: true
Depends on: 1878214
Depends on: 1878216
Depends on: 1878217
Blocks: 1878436
Blocks: 1878439
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: