Closed Bug 1777386 Opened 2 years ago Closed 2 years ago

[PBM] Add SpecialMessageAction MULTI_ACTION that allows to configure multiple special actions

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Iteration:
104.2 - July 11 - July 22
Tracking Status
firefox104 --- fixed

People

(Reporter: pdahiya, Assigned: jprickett)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Scope of this bug is to implement a SpecialMessageAction MULTI_ACTION that takes an array of actions to run. SpecialMessageAction.handleAction would call itself multiple times for each action, e.g.,

case "MULTI_ACTION":  action.data.forEach(this.handleAction)

where JSON will have data passed as

action: {
   type: "MULTI_ACTION",
   data : {
     action: {
          type: "OPEN_URL",
          data: {
            args: "https://example.com",
            where: "tabshifted",
          },
        },
    action: {
            type: "SHOW_MIGRATION_WIZARD",
            data: {},
        },
    }
}

For Pinning Private Browsing Tab experiment, we want to SET_PREF and PIN_TO_TASKBAR on click of Pin Private Tab promo button on about:privatebrowsing

https://bugzilla.mozilla.org/show_bug.cgi?id=1776934#c1

Without MULTI_ACTION support we can only execute on special action on click on promoButton.

See https://mozilla.slack.com/archives/G90HG2UQH/p1656545171768649

Assignee: nobody → jprickett
Iteration: --- → 104.1 - June 27 - July 8
Priority: -- → P1
Iteration: 104.1 - June 27 - July 8 → 104.2 - July 11 - July 22
Pushed by jprickett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/351d37795399 Special Message Action MULTI_ACTION r=pdahiya
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Blocks: 1781361
Blocks: 1778796
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: