(In reply to :Ehsan Akhgari from comment #2)
Is it possible to "prime the profile" by running Firefox first and run some code to trigger a download of the tables, wait for the download to finish and then start running the tests?
Regarding "run some code to trigger a download of the tables, wait for the download to finish", to manually trigger SafeBrowsing download, there are two ways:
- Using listmanager API
- Modify preference "browser.safebrowsing.provider.mozilla.nextupdatetime" to 1
and then listen to "safebrowsing-update-finished" or monitor the preference to wait for the download to finish.
Since the tables we care about here are our tables, another approach is to write a script that converts the list to SafeBrowsing file format and then preinstalls it. I am not sure which approach is easier(probably manually trigger the download), but if such preinstallable tables exist, it may be easier for the other tests that have the same requirement to integrate(assume preinstall is easy...)