Skip to content

Commit

Permalink
Merge pull request #175 from YusukeIwaki/porting/7243
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Iwaki committed Dec 5, 2021
2 parents 03e4cc5 + ce465b6 commit d4e95c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puppeteer/launcher/chrome.rb
Expand Up @@ -40,7 +40,7 @@ def launch(options = {})

temporary_user_data_dir = nil
if chrome_arguments.none? { |arg| arg.start_with?('--user-data-dir') }
temporary_user_data_dir = Dir.mktmpdir('puppeteer_dev_chrome_profile-')
temporary_user_data_dir = Dir.mktmpdir('puppeteer_dev_chrome_profile-', ENV['PUPPETEER_TMP_DIR'])
chrome_arguments << "--user-data-dir=#{temporary_user_data_dir}"
end

Expand Down
2 changes: 1 addition & 1 deletion lib/puppeteer/launcher/firefox.rb
Expand Up @@ -228,7 +228,7 @@ def default_args(options = nil)
end

private def create_profile(extra_prefs = {})
Dir.mktmpdir('puppeteer_dev_firefox_profile-').tap do |profile_path|
Dir.mktmpdir('puppeteer_dev_firefox_profile-', ENV['PUPPETEER_TMP_DIR']).tap do |profile_path|
server = 'dummy.test'
default_preferences = {
# Make sure Shield doesn't hit the network.
Expand Down

0 comments on commit d4e95c8

Please sign in to comment.