Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Bug 1390206 profile #159

Merged
merged 2 commits into from Aug 18, 2017
Merged

Bug 1390206 profile #159

merged 2 commits into from Aug 18, 2017

Conversation

bclary
Copy link
Contributor

@bclary bclary commented Aug 14, 2017

The first commit changes from using a string of user_pref values in profile_ to keeping the preferences in a dictionary that is passed to FirefoxProfile to create the profile. See the bug for more details.

The second commit adds the preference prefs["layout.css.servo.enabled"] = False to prevent servo from running.

@bclary bclary self-assigned this Aug 14, 2017
@bclary bclary requested review from armenzg and bnjbvr August 14, 2017 21:34
# create new profile
runner.mkdir("profile/")
# Force stylo off.
prefs["layout.css.servo.enabled"] = False

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing i'd maybe suggest is if we can pull this out into a separate file so it's just a case of listing out prefs and desired settings (presuming we have many more experiments in the future that we might want some control over)... there's also maybe further discussion about using a service to set our automation to the correct state (maybe even allowing remote flipping so we can effectively a/b our results)

Copy link
Contributor

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, modulo one tiny comment. (Feel free to merge after update) Thanks!

@@ -134,6 +134,9 @@ def execute(self, benchmark, env, args, prefs):
# delete profile
runner.rm("profile/")

# Force stylo off.
prefs["layout.css.servo.enabled"] = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put it next to the other Firefox default prefs, for consistency, please? (in configs.py)

Agreed using an external file or external service would be even better.

@bclary
Copy link
Contributor Author

bclary commented Aug 18, 2017

I made the changes and amended the commit and did a force push. I should have added the changes as a new commit and done a squash during the merge. I'll just do the merge now anyway.

@bclary bclary merged commit 71cb966 into mozilla:master Aug 18, 2017
@bclary bclary deleted the bug-1390206-profile branch August 18, 2017 19:25
@bnjbvr
Copy link
Contributor

bnjbvr commented Aug 21, 2017

Force-pushing works great too, thanks for merging!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants