Closed Bug 1776514 Opened 2 years ago Closed 2 years ago

Configure select background tasks to enable Nimbus experiments and Firefox Messaging System (and Messaging Experiments)

Categories

(Toolkit :: Background Tasks, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

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

Details

(Whiteboard: [fidedi-notifications])

Attachments

(1 file, 1 obsolete file)

This is "the work" for Bug 1764603 and Bug 1775133.

This commit does several things:

  1. It configures a new Nimbus feature and corresponding message group
    backgroundTaskMessage.

  2. It configures a new background-task-message Firefox Messaging
    System provider specific to background tasks. It is a
    remote-settings provider that uses a new bucket
    background-task-message, and that uses RemoteL10n.

  3. It configures Firefox Messaging Experiments to use a new
    nimbus-desktop-background-task-experiments Remote Settings
    collection, sibling to the existing nimbus-desktop-experiments
    collection.

These configurations are achieved by setting preferences in
backgroundtasks.js, which is applied on top of firefox.js prefs by
the preference service. These preferences apply to every background
task.

  1. It implements functions for enabling Nimbus and the Firefox
    Messaging System (and Messaging Experiments) that can be used by
    arbitrary background tasks.

    It is assumed (but not enforced here) that such tasks will use
    non-ephemeral (persistent) profiles, so that Remote Settings
    incremental sync, Nimbus bucketing, and Messaging System message
    limits, function as expected.

  2. It adds a new message background task specifically for testing
    background task messages. Invoke the testing task with command
    lines like firefox --backgroundtask message ....

    To ease testing, the framework accepts --url about:studies?...
    arguments from the Experimenter Web UI to explicitly opt-in to
    specific experiment branches.

Eventually the existing backgroundupdate task will use the new
functions, just as the testing message task does.

Depends on D150217

There is a single nalexander-ms-test1 experiment defined: see

https://stage.experimenter.nonprod.dataops.mozgcp.net/nimbus/nalexander-ms-test1

Because of the way that Nimbus/Experimenter publishes previews, the
collection needs to be overridden to be nimbus-preview. This is
what happens for regular Desktop experiment previews as well.

That single experiment should be fetched, complete enrollment, and pop
a toast notification. The title string of the toast notification
shows the treatment group, A or B, and the body string of the toast
notification uses RemoteL10n or is an in-product string, respectively.

Depends on D150522

Priority: -- → P2
Depends on: 1775187
Attachment #9283309 - Attachment description: WIP: Bug 1776514 - Allow background tasks to enable Nimbus and Firefox Messaging System. r?barret!,pdahiya!,bytesized! → Bug 1776514 - Allow background tasks to enable Nimbus and Firefox Messaging System. r?barret!,pdahiya!,bytesized!
Attachment #9283311 - Attachment is obsolete: true
Depends on: 1780299
Attachment #9283309 - Attachment description: Bug 1776514 - Allow background tasks to enable Nimbus and Firefox Messaging System. r?barret!,pdahiya!,bytesized! → Bug 1776514 - Allow background tasks to enable Nimbus and Firefox Messaging System. r?barret!,bytesized!
Pushed by nalexander@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b083e38b2ed9
Allow background tasks to enable Nimbus and Firefox Messaging System. r=barret,bytesized
Backout by abutkovits@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2174465e1488
Backed out changeset b083e38b2ed9 for causing failure at browser_all_files_referenced.js. CLOSED TREE
Pushed by nalexander@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e6ad35220e23
Allow background tasks to enable Nimbus and Firefox Messaging System. r=barret,bytesized
Pushed by nalexander@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e5280f629025
Allow background tasks to enable Nimbus and Firefox Messaging System. r=barret,bytesized
Regressions: 1780708
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch

Clearing NI since this has been addressed.

Flags: needinfo?(nalexander)
Blocks: 1781952
Depends on: 1782156
Regressions: 1784117
Depends on: 1790448
Regressions: 1793890
Blocks: 1794681
Blocks: 1797343
Depends on: 1805511
Blocks: 1830370
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: