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

Disable proxy discovery in headless mode. #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -165,7 +165,7 @@ ChromeBrowser.prototype = {
ChromeBrowser.$inject = ['baseBrowserDecorator', 'args']

function headlessGetOptions (url, args, parent) {
return parent.call(this, url, args).concat(['--headless', '--disable-gpu', '--remote-debugging-port=9222'])
return parent.call(this, url, args).concat(['--headless', '--disable-gpu', '--remote-debugging-port=9222', '--proxy-server="direct://"', '--proxy-bypass-list=*'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please refactor this line into multiple lines please?

}

var ChromeHeadlessBrowser = function (baseBrowserDecorator, args) {
Expand Down
4 changes: 3 additions & 1 deletion test/jsflags.spec.js
Expand Up @@ -66,7 +66,9 @@ describe('headlessGetOptions', function () {
'-incognito',
'--headless',
'--disable-gpu',
'--remote-debugging-port=9222'
'--remote-debugging-port=9222',
'--proxy-server="direct://"',
'--proxy-bypass-list=*'
])
})
})