Skip to content

Commit

Permalink
delete 'lock' file in FF profile (#13090)
Browse files Browse the repository at this point in the history
Existing profile model can now be used to instantiate FF profile

Fixes #11576

---------

Co-authored-by: MatzFan <matzfan@mailinator.com>
Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 10, 2023
1 parent d8cd9dc commit b83394c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rb/lib/selenium/webdriver/firefox/profile.rb
Expand Up @@ -33,6 +33,8 @@ class Profile
'security.csp.enable' => false
}.freeze

LOCK_FILES = %w[.parentlock parent.lock lock].freeze

attr_reader :name, :log_file
attr_writer :secure_ssl, :load_no_focus_lib

Expand Down Expand Up @@ -176,7 +178,7 @@ def delete_extensions_cache(directory)
end

def delete_lock_files(directory)
%w[.parentlock parent.lock].each do |name|
LOCK_FILES.each do |name|
FileUtils.rm_f File.join(directory, name)
end
end
Expand Down

0 comments on commit b83394c

Please sign in to comment.