搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

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

  • 無回覆
  • 1 有這個問題
  • 1 次檢視
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!

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題