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

fix: firefox binary path not passed in the run method exported by 'src/firefox/index' #468

Merged
merged 1 commit into from
Sep 7, 2016

Conversation

rpl
Copy link
Member

@rpl rpl commented Sep 6, 2016

This PR fixes an issue with the optional Firefox binary path option and contains some tweaks to the related declared flow types, which shows how we can force flow to raise errors on this kind of issues (missing optional parameters in the parameters and options objects)

@coveralls
Copy link

coveralls commented Sep 6, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 6bc8846 on rpl:fix/run-custom-firefox-binary-Path into c95991d on mozilla:master.

@rpl rpl force-pushed the fix/run-custom-firefox-binary-Path branch from 6bc8846 to 48bbd7b Compare September 6, 2016 17:40
@coveralls
Copy link

coveralls commented Sep 6, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 48bbd7b on rpl:fix/run-custom-firefox-binary-Path into c95991d on mozilla:master.

@@ -333,6 +333,6 @@ export class ExtensionRunner {

run(profile: FirefoxProfile): Promise<FirefoxProcess> {
const {firefoxApp, firefox} = this;
return firefoxApp.run(profile, {firefox});
return firefoxApp.run(profile, {firefoxBinary: firefox || null});
Copy link
Contributor

Choose a reason for hiding this comment

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

does this need to pass null to satisfy the flow type or something? Could it just be {firefoxBinary: firefox} ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@kumar303 yep, it was a small leftover.
Removed in the updated patch.

@kumar303
Copy link
Contributor

kumar303 commented Sep 6, 2016

r+wc (with comments). I just had one question about passing null, otherwise it looks good.

@rpl rpl force-pushed the fix/run-custom-firefox-binary-Path branch from 48bbd7b to 2ecc55e Compare September 7, 2016 10:21
@coveralls
Copy link

coveralls commented Sep 7, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 2ecc55e on rpl:fix/run-custom-firefox-binary-Path into c95991d on mozilla:master.

@rpl
Copy link
Member Author

rpl commented Sep 7, 2016

@kumar303 the change suggested in the above comment has been applied and this pull request updated accordingly.

@kumar303
Copy link
Contributor

kumar303 commented Sep 7, 2016

Thanks!

@kumar303 kumar303 merged commit 0f87c9b into mozilla:master Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants