Skip to content
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

Add minimal implementation of firefox profile. #94

Merged
merged 1 commit into from
Apr 2, 2016
Merged

Conversation

danhper
Copy link
Collaborator

@danhper danhper commented Mar 23, 2016

This is a very minimal implementation of Firefox profile.
It is enough to set the user agent, but we may need to
add at least some utility to load an existing profile.

The usage looks like this:

alias Hound.Firefox.Profile

profile = 
  Profile.new
  |> Profile.set_user_agent("my_ua_string")
  |> Profile.put_preference("some.key", "some-value")
  |> Profile.dump
Hound.start_session(%{firefox_profile: profile})

I am not sure if there is some preferences we should add to default_prefs,
if anyone has any idea, let me know.
Also, I am not sure if it is ok to have everything in user.js or if we really need
to make a difference between prefs.js and user.js, any idea?

/cc @darksheik @HashNuke

@danhper danhper merged commit 1bcae59 into master Apr 2, 2016
@danhper danhper deleted the firefox-profile branch April 2, 2016 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant