-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove support for random_attributes, ua_strings, screen_res #745 #775
Remove support for random_attributes, ua_strings, screen_res #745 #775
Conversation
ua_strings, screen_res
…duacodes/OpenWPM into remove_support_rand_attrs
Codecov Report
@@ Coverage Diff @@
## master #775 +/- ##
==========================================
- Coverage 40.06% 39.48% -0.59%
==========================================
Files 29 29
Lines 3157 3118 -39
==========================================
- Hits 1265 1231 -34
+ Misses 1892 1887 -5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is looking very good. But there are some little changes to be made.
You should also remove |
Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
Do you mean remove the comments? or the whole code snippet and its calls down the line? |
removed some comments mentioning screen_res and ua_strings
I mean the whole snippet and it's calls down the line as well as any references to browser_settings. browser_settings were only used to store ua_strings and screen_res and since we want to remove both, we don't need them anymore. |
What do you suggest I do to remove browser_settings as in this case https://github.com/mozilla/OpenWPM/blob/e989ce5f74c1737185c89a33bde4015b55df066a/automation/Commands/profile_commands.py#L143-L190 |
Here I'd suggest deleting Lines 182 and 190
Delete the assignment and keep the call. load_profile(
browser_profile_path,
manager_params,
browser_params,
browser_params["recovery_tar"],
) And then go down in those functions to remove everything that mentions |
https://github.com/mozilla/OpenWPM/blob/e989ce5f74c1737185c89a33bde4015b55df066a/automation/Commands/profile_commands.py#L59-L140 |
@vringar Can you please briefly explain what exactly load_profile function is doing? To my understanding we are using load_profile function to load browser_settings and return the browser_settings and assigning it to profile_settings which we want to get rid of. and we are also extracting the tar.gz file into browser_profile_folder directory. what exactly does full_profile.tar.gz or profile.tar.gz includes, I mean what kind of information? |
So this is off the top of my head and might not be completely accurate, but as far as I remember:
These files contain a tarred Firefox Profile. This is where your cookies, history and settings are stored in one place. We use Selenium to control Firefox. Selenium creates an empty profile folder in a temporary directory when we tell it to start a new Firefox instance. Somehow we decided that we also needed to save some extra information for each browser which wasn't in the If any of this makes sense to you and you feel like you can shorten this a bit, please write this as a docstring on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small nitpicks but otherwise this looks good to me!
Yes please keep this code around. We eventually want to re-enable profile dumping but didn't have the time yet. |
Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
Thank you for explaining, I think now have a big picture of what goes on when we save cookies in the browser. |
Cookies are always stored in your profile. However usually your Profile just stays in one place on the system and doesn't get tarred or copied somewhere else. |
Do you feel like there is anything else you'd want to do as part of this change? |
I think I have made all the necessary changes. I think its good to go!... |
Then thank you very much for following through on this! |
Running tests to fix #745