Closed Bug 1478569 Opened 6 years ago Closed 6 years ago

New Action: Show AppMenu

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 63
Iteration:
63.4 - Aug 20
Tracking Status
firefox63 --- fixed

People

(Reporter: giorgos, Assigned: andreio)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We need another action to show AppMenu for snippets.

In pre AS Router world we implement this using UITour.showMenu('appMenu')

https://bedrock.readthedocs.io/en/latest/uitour.html#showmenu-target-callback
Assignee: nobody → andrei.br92
Severity: normal → enhancement
Iteration: --- → 63.3 - Aug 6
Priority: -- → P1
With this bug we should also expose executing actions to the snippets (currently only available to onboarding messages) so that they can call out to `OPEN_APPLICATIONS_MENU`
Snippet should  be able to trigger actions using links and buttons. Can we use `url` and `button_url` accordingly with the action name and have AS Router translate that to an action? 

Example for links

{
  "text": "Menu <openMenuLink>open</openMenuLink>."
  "links": {
    "openMenuLink": {
      "metric": "download-click",
      "url": "OPEN_APPLICATIONS_MENU"
    }
  }
}

Example for button_url

{ 
  "text": "Menu open",
  "button_url": "OPEN_APPLICATIONS_MENU",
  "button_label": "Open"
}
Blocks: 1432588
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1484328
https://hg.mozilla.org/mozilla-central/rev/b841b6fa93f1
Iteration: 63.3 - Aug 6 → 63.4 - Aug 20
Target Milestone: --- → Firefox 63
Component: Activity Streams: Newtab → Messaging System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: