Closed Bug 1943208 Opened 1 year ago Closed 1 year ago

Allow callout primary CTA to flip multiple prefs and open the chatbot panel

Categories

(Core :: Machine Learning: General, task)

Firefox 136
task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: asafko, Assigned: Mardak)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

Attachments

(1 file)

For the contextual chatbot recommendation experiment, we would like to be able to:

  • flip the sidebar.revamp to true,
  • flip browser.ml.chat.enabled to true
  • open sidebar panel on the provider choice screen,
  • optionally expand a box with the detailed description of a specific provider.
Version: unspecified → Firefox 136
Summary: Allow callout primary CTA to flip multiple prefs → Allow callout primary CTA to flip multiple prefs and open the chatbot panel

there's a specific sidebar race condition where changing sidebar.revamp bug 1920806 hides any open sidebar panels bug 1906140, so a multi_action opening the chatbot bug 1919867 ends up getting closed

https://searchfox.org/mozilla-central/rev/4f5426084651871759f5346eb0ded2e9ac5326fd/browser/components/sidebar/browser-sidebar.js#709

"action": {
  "data": { 
    "actions": [
      {     
        "type": "SET_PREF",
        "data": {
          "pref": { 
            "name": "sidebar.revamp",
            "value": true
          }         
        }       
      },    
      {     
        "type": "OPEN_SIDEBAR",
        "data": "viewGenaiChatSidebar"
      }     
    ]   
  },
  "type": "MULTI_ACTION",
  "navigate": true
}
Depends on: 1920806, 1919867, 1906140
Whiteboard: [genai]
Blocks: 1937156

Reopen panel if one was open when toggling revamp and still available. This avoids race condition of trying to open chatbot and flip revamp at the same time.

Assignee: nobody → edilee
Status: NEW → ASSIGNED
Duplicate of this bug: 1959031
Pushed by elee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47168d8e81ba Allow callout primary CTA to flip multiple prefs and open the chatbot panel r=sidebar-reviewers,sclements
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
See Also: → 1961219
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: