openwpm / OpenWPM

A web privacy measurement framework
https://openwpm.readthedocs.io
Other
1.33k stars 313 forks source link

Document how to use primed profile #941

Open vringar opened 3 years ago

vringar commented 3 years ago

Currently there is no documentation on how to use primed profiles e.g. to run crawls with Addons or with some previous set of Cookies and Site Data.

8-legged-elephant commented 3 years ago

I was trying to run a crawl with the uBlock Origin extension and I am unable to get it working.

The steps I took were:

image

image

image

This was done inside of a Linux mint VM.

One thing I noticed while trying to confirm that the profile was loaded is that the profile directory is created ( the uBO_profile ) inside of the firefox profile created in the tmp directory. But that may be intended.

vringar commented 3 years ago

I just remembered that we already wrote something on the topic. See here.

It sounds to me like you tarred the profile directory instead of the contents of the profile directory. That's why your profile is copied in a subfolder in the active profile instead overwriting the active profile.

8-legged-elephant commented 3 years ago

Okay, thanks for clarifying. I did not see the doc entry about profiles. I think it is because I do not have much experience with Firefox profiles, so I was looking for 'adding extensions' instead of 'adding profiles'.

I appreciate all the help.

vringar commented 3 years ago

No worries. I just had the feeling that I had already seen some docs for this. And then I found the solution to your error there.

I'll write up something explicitly mentioning add-ons

MaazBinMusa commented 3 years ago

@8-legged-elephant Did you try just installing the xpi with selenium's install_addon function in the deploy_firefox.py file?