Closed Bug 1485339 Opened 6 years ago Closed 6 years ago

Only load ASR snippets when experiment is enabled

Categories

(Firefox :: Messaging System, defect, P2)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: giorgos, Assigned: andreio)

References

(Blocks 1 open bug)

Details

STR:

On current nightly 63.0a1 (2018-08-22) with `browser.newtabpage.activity-stream.asrouterExperimentEnabled` set to `true` I see from the Network tab of DevTools that nightly requests Snippets for the pre-ASR implementation (URLs starting with /5/...) 


Expectation:

Firefox must only request snippets for the implementation currently in use. 

Otherwise we risk significant increase in CDN costs if/when we enable the experiment for a larger population.
Blocks: 1432588
Priority: -- → P2
Assignee: nobody → andrei.br92
By default ASRouter is disabled so starting up Firefox will do a request for the pre-ASR implementation and then when ASR is toggled on, another request for the new implementation. This is what I think happened here.
Checking AS code in 62 [0] looks like pre-ASR implementation will not initialize if ASR is enabled and similarly in current FFx 64.

[0] https://github.com/mozilla/activity-stream/blob/57cb70837328043b25ae8d9374c2c35d64a1d0dd/content-src/lib/snippets.js#L386
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Thanks for taking the time to check Andrei. I also re-checked on up-to-date nightly and I cannot reproduce the issue.
Component: Activity Streams: Newtab → Messaging System
You need to log in before you can comment on or make changes to this bug.