Exposure event: Hidden exposures are overcounted
Categories
(Firefox :: Address Bar, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox124 | --- | fixed |
People
(Reporter: adw, Assigned: adw)
References
Details
(Whiteboard: [sng])
Attachments
(1 file)
Via Wil: The higher-placement sponsored experiment revealed that hidden exposures are recorded much more often than visible exposures. We seem to be recording hidden exposures for results that ultimately would not have been shown. Wil and I took a look at the relevant code and think we found two problematic call sites:
- Here: The result would not have been shown until this line a little farther down is reached
- Here: Similarly, the result wouldn't have been shown until this line farther down is reached
When fixing this, we'll need to be careful to prevent hidden exposures from affect the view. The second call site in particular has some logic (seenMisplacedResult, newVisibleSpanCount) before determining whether the newly created result can be shown.
I'd also like to try writing a test that exercises every possible code path with exposures shown vs. hidden to make sure hidden exposures are recorded exactly when visible exposures are.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
This fixes the two #addExposure() calls in UrlbarView.#updateResults() so
that hidden exposures are properly counted. Right now we overcount them because
we record them in cases where the result would not have been shown anyway.
The new test tries to cover all possible UrlbarView.#updateResults() paths:
- When the view is full and a new result can't replace any of the old rows, the
new result is appended and hidden. If the query is then canceled, the new row
will never be shown - When the vew isn't full, a new row can be appended and visible immediately
- When a new row replaces an old row, it can be visible immediately
Comment 3•2 years ago
|
||
| bugherder | ||
Description
•