Closed Bug 1689567 Opened 3 years ago Closed 3 years ago

Add telemetry and handle "disconnected" events for infobar_message

Categories

(Firefox :: Messaging System, enhancement, P2)

enhancement

Tracking

()

VERIFIED FIXED
87 Branch
Tracking Status
firefox87 --- verified

People

(Reporter: andreio, Assigned: andreio)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

If we use infobar_message only inside a tab (not global) there is an additional event disconnected that happens if the tab gets closed and dismisses the infobar.
This case is currently not handled.

Severity: -- → S3
Priority: -- → P2
Pushed by aoprea@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a5fdf5d840af
Add telemetry and handle disconnected events for infobar_message r=nanj
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

I have verified that a "DISMISSED" ping is displayed in the "Browser Console" using Firefox Nightly 88.0a1 (Build ID: 20210223085042) on Windows 10 x64, macOS 10.15.6, and Ubuntu Linux 20.04 with the following steps:

[Prerequisites]:

  • Have the pref browser.ping-centre.log value set to true.
  • Have the pref browser.newtabpage.activity-stream.asrouter.devtoolsEnabled value set to true.
  • Have the pref browser.newtabpage.activity-stream.asrouter.providers.onboarding value set to {"id":"onboarding","type":"local","localProvider":"CFRMessageProvider","enabled":true,"exclude":[]}.
  • Have the Browser Console opened.

[Steps to Reproduce]:

  1. Navigate to the "about:newtab#asrouter" page.
  2. Select the "onboarding" option from the "Show messages from" drop-down menu.
  3. Change the "type" value from "global" to "tab" from the "INFOBAR_ACTION_86" section.
  4. Click the "Modify" button from the "INFOBAR_ACTION_86" section.
  5. Close the "about:newtab#asrouter" page and observe the "Browser Console".

[Expected result]:

  • A Telemetry Ping is displayed with an "event": "DISMISSED" is displayed.
Status: RESOLVED → VERIFIED
Blocks: 1760224
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: