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 more chrome flags for testing. #1416

Merged
merged 2 commits into from Jan 10, 2017
Merged

Add more chrome flags for testing. #1416

merged 2 commits into from Jan 10, 2017

Conversation

paulirish
Copy link
Member

I was inspired by https://cs.chromium.org/chromium/src/chrome/test/chromedriver/chrome_launcher.cc?sq=package:chromium&dr=C&l=64 which listed a bunch of flags we aren't using yet.

I've added the ones that make sense, along with comments to explain a few.

cc @Janpot.. what do you think about flipping on ignore-certificate-errors for everyone here? I'm okay with it if you are. :)

@Janpot
Copy link
Contributor

Janpot commented Jan 5, 2017

@paulirish I'm still using the chrome launcher in my application and I already add --ignore-certificate-errors as additional flag so fine for me.
(I'm also using --no-sandbox, --headless and --disable-gpu, but these are just for the headless mode)

'--disable-translate',
'--disable-default-apps',
'--no-first-run',
'--disable-extensions', // disable all chrome extensions entirely
Copy link
Member

Choose a reason for hiding this comment

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

not sure how strongly I feel about it, but comments above each line might be easier to read here

Copy link
Member Author

Choose a reason for hiding this comment

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

done

'--disable-default-apps',
'--no-first-run',
'--disable-extensions', // disable all chrome extensions entirely
// '--ignore-certificate-errors', // Ignore certificate errors, like self-signed
Copy link
Member

Choose a reason for hiding this comment

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

I'm personally fine with leaving this in while commented out, but I feel strongly we shouldn't have it on by default. It's just not worth being responsible for turning this on for all users for the few who need it. In a pure testing environment this should be fine, but there are many using LH on arbitrary sites on personal machines, etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

@wardpeet mentioned maybe exposing this as a CLI flag. Talking about it offline with @brendankenny, we could do a --chrome-flags="--ignore-certificate-errors" kinda thing. That's not bad at all.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should make it a bit more general. Ignore ssl certs you probably only want it in dev mode. Maybe there are other options we want? We could expose it as --dev like we do with --mobile

it could underneath use --chrome-flags="--ignore-certificate-errors"

Copy link
Member Author

Choose a reason for hiding this comment

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

removed ignore-certificate-errors from this PR.
filed #1443 for --chrome-flags

extension updating, safe browsing service, upgrade detector, translate, UMA */
'--disable-sync', // disable syncing to a Google account
'--metrics-recording-only', // disables reporting to UMA, but allows for collection
'--safebrowsing-disable-auto-update', // New safebrowsing lists will not be fetched
Copy link
Member

Choose a reason for hiding this comment

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

supposedly this is redundant due to --disable-background-networking (crbug.com/354743), but I guess it doesn't hurt, either.

Copy link
Member Author

@paulirish paulirish Jan 5, 2017

Choose a reason for hiding this comment

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

agree

@paulirish
Copy link
Member Author

PTAL

@paulirish paulirish merged commit 7811775 into master Jan 10, 2017
@paulirish paulirish deleted the moarflags branch January 10, 2017 04:26
weiwei-lin pushed a commit to weiwei-lin/lighthouse that referenced this pull request Jan 12, 2017
andrewrota pushed a commit to andrewrota/lighthouse that referenced this pull request Jan 13, 2017
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

5 participants