Skip to content

Commit b83394c

Browse files
MatzFanMatzFantitusfortner
authored
delete 'lock' file in FF profile (#13090)
Existing profile model can now be used to instantiate FF profile Fixes #11576 --------- Co-authored-by: MatzFan <[email protected]> Co-authored-by: Titus Fortner <[email protected]>
1 parent d8cd9dc commit b83394c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rb/lib/selenium/webdriver/firefox/profile.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class Profile
3333
'security.csp.enable' => false
3434
}.freeze
3535

36+
LOCK_FILES = %w[.parentlock parent.lock lock].freeze
37+
3638
attr_reader :name, :log_file
3739
attr_writer :secure_ssl, :load_no_focus_lib
3840

@@ -176,7 +178,7 @@ def delete_extensions_cache(directory)
176178
end
177179

178180
def delete_lock_files(directory)
179-
%w[.parentlock parent.lock].each do |name|
181+
LOCK_FILES.each do |name|
180182
FileUtils.rm_f File.join(directory, name)
181183
end
182184
end

0 commit comments

Comments
 (0)