Closed
Bug 1570961
Opened 6 years ago
Closed 6 years ago
The WNP impression ping is wrongly sent when the panel is triggered even if there are no messages to be displayed
Categories
(Firefox :: Messaging System, defect, P3)
Firefox
Messaging System
Tracking
()
RESOLVED
DUPLICATE
of bug 1590721
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | unaffected |
| firefox69 | --- | unaffected |
| firefox70 | --- | affected |
People
(Reporter: cmuresan, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
205.34 KB,
image/gif
|
Details |
[Affected versions]:
- Firefox Nightly 70.0a1, Build ID 20190802094835
[Affected Platforms]:
- All Windows
- All Mac
- All Linux
[Prerequisites]:
- Have the
browser.newtabpage.activity-stream.asrouter.devtoolsEnabledpref set totrue. - Have the
browser.ping-centre.logpref set totrue.
[Steps to reproduce]:
- Start the browser with a new clean profile and open the Browser Console.
- Refocus the Browser and navigate to about:newtab#devtools.
- Select the
panel_local_testingoption from theShow messagesdropdown. - Click the
Showbutton for thetheWHATS_NEW_BADGE_70` option in the list. - Wait 5 seconds and observe the Browser Console.
[Expected results]:
- No new messages appear in the Browser Console.
[Actual results]:
- An impression ping is logged in the Browser Console even though the toolbar button is not displayed.
[Notes]:
- Not sure if this is strictly related to how I'm triggering the button.
- Attached a screen recording of the issue.
Updated•6 years ago
|
Assignee: nobody → andrei.br92
Priority: -- → P1
Comment 1•6 years ago
|
||
I'm turning this into a P3.
- It's not possible to happen given our current messages setup: you can't dismiss What's New messages so the panel will always have content. Similar for FxA
- It's tricky to fix: the function that actually adds the badge will be called for every window. Assuming we only want to count 1 impression for all we need to do it one level above where unfortunately we can't tell if the operation was executed successfully. We need a function that calls addImpression once and returns early for subsequent calls.
Assignee: andrei.br92 → nobody
Priority: P1 → P3
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Didn't you land something recently that fixed this? Can you link the bug/PR?
Flags: needinfo?(andrei.br92)
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(andrei.br92)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•