Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

Programatically set cookie from command-line before Firefox first-startup

  • Gan freagra
  • 1 leis an bhfadhb seo
  • 13 views
more options

I'm working on a project where we run Firefox in a container and I need to insert a cookie into the sqlite cookie DB to ensure it's available when Firefox is started. I have some script that runs before Firefox is started and know that I can create a profile on the command line e.g. `firefox --headless -CreateProfile foo` However this simply creates the profile dir and does not create the sqlite cookie DB or relevant tables. Is there a way to force creation of the cookie DB from the command line? Ideally, I want to create the Firefox profile & sqlite cookie DB at the point I build my docker image. The cookie would be inserted when the container runs, before Firefox is started. Any help would be much appreciated! Thanks!

I'm working on a project where we run Firefox in a container and I need to insert a cookie into the sqlite cookie DB to ensure it's available when Firefox is started. I have some script that runs before Firefox is started and know that I can create a profile on the command line e.g. `firefox --headless -CreateProfile foo` However this simply creates the profile dir and does not create the sqlite cookie DB or relevant tables. Is there a way to force creation of the cookie DB from the command line? Ideally, I want to create the Firefox profile & sqlite cookie DB at the point I build my docker image. The cookie would be inserted when the container runs, before Firefox is started. Any help would be much appreciated! Thanks!