Implement fallback protocol for sponsored tiles
Categories
(Fenix :: Top Sites, task)
Tracking
(firefox110 unaffected, firefox111 unaffected, firefox112 wontfix, firefox113 verified)
Tracking | Status | |
---|---|---|
firefox110 | --- | unaffected |
firefox111 | --- | unaffected |
firefox112 | --- | wontfix |
firefox113 | --- | verified |
People
(Reporter: aputanu, Assigned: aputanu)
References
Details
Attachments
(2 files)
If we do not successfully receive data from adM or Contile within our refresh period, we should serve content in its place until the situation is remedied. (“As a user, I don’t want my contextual experience degraded because of background issues.”)
The Contile: Fallback Protocol for Sponsored TopSites adds a header to the Contile response including extra “staleness” information.
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I've tested the following scenarios:
-
On the latest Nightly 112.0a1 (2023-03-01) build I've activated the Sponsored Shortcuts feature by setting a target locale for it on a VPN.
After checking that the Sponsored Shortcuts are displayed, I've closed both the VPN and the Nightly.
I've set the time to 1h5m ahead and reopened Nightly to check if the Sponsored Shortcuts are no longer displayed. -
On a debug build created by Alexandru for this scenario I've activated the Sponsored Shortcuts feature.
After checking that the Sponsored Shortcuts are displayed, I've closed the app.
With the help of Alexandru using Postman to modify to get 204 status code, I then reopened Nightly again to see if the Sponsored Shortcuts are no longer displayed.
On both cases the Sponsored Shortcuts were no longer displayed.
Device used for testing: Google Pixel 7 (Android 13).
Marking the ticket as Verified Fixed.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
Comment 5•2 years ago
|
||
For the future, we typically prefer to track one patch per bug, specifically to avoid ambiguity like this case where one patch landed during the 112 cycle and another during the 113 cycle.
With that said, do we need to backport this second patch to 112 also? Please nominate for approval if so.
Assignee | ||
Comment 6•2 years ago
|
||
Sorry about that, I'll open separate bugs from now on. I think we should uplift this to 112, will open the backport PR after QA verification.
Comment 7•2 years ago
|
||
Tested with Alex on a custom build and the following results were obtained:
- Scenario 1: After launching the app, the Sponsored Shortcuts were displayed, as expected; (received a 200 Status Code);
- Scenario 2: Alex then used Postman to get a 204 status code, after which the Sponsored Shortcuts initially available disappeared, as expected;
- Scenario 3: Lastly, Alex used Postman again to get a 500 status code and set the max age to ~2 mins. However, the Sponsored Shortcuts that were displayed, did not disappear after the 2 minutes passed, nor after a much longer period of time (settings de device time several hours ahead).
Comment 8•2 years ago
•
|
||
Please create and nominate the backport PR for Beta uplift when you get a chance.
Assignee | ||
Comment 9•2 years ago
|
||
I'm afraid we'll need a follow-up patch, as described by @Delia, in Scenario 3, the sponsored tiles should have disappeared after the server specified max age. Opened 1822803 in this scope. Because of this needing a follow-up patch and since the patch which landed in 112 does not affect the existing refresh cadence, I think we should let it ride the trains.
Updated•2 years ago
|
Comment 10•2 years ago
|
||
Marking this ticket as "Verified Fixed" for 113 based on the testing conducted to validate Scenarios 1 & 2, and the comments above. Scenario 3 will be tested in the newly opened ticket.
Description
•