@@ -132,6 +132,7 @@ def browser_kwargs(logger, test_type, run_info_data, config, subsuite, **kwargs)
132
132
"headless" : kwargs ["headless" ],
133
133
"preload_browser" : kwargs ["preload_browser" ] and not kwargs ["pause_after_test" ] and not kwargs ["num_test_groups" ] == 1 ,
134
134
"specialpowers_path" : kwargs ["specialpowers_path" ],
135
+ "allow_list_paths" : kwargs ["allow_list_paths" ],
135
136
"debug_test" : kwargs ["debug_test" ]}
136
137
if test_type == "wdspec" and kwargs ["binary" ]:
137
138
browser_kwargs ["webdriver_args" ].extend (["--binary" , kwargs ["binary" ]])
@@ -644,7 +645,8 @@ def __call__(self, line):
644
645
class ProfileCreator :
645
646
def __init__ (self , logger , prefs_root , config , test_type , extra_prefs ,
646
647
disable_fission , debug_test , browser_channel , binary ,
647
- package_name , certutil_binary , ca_certificate_path ):
648
+ package_name , certutil_binary , ca_certificate_path ,
649
+ allow_list_paths ):
648
650
self .logger = logger
649
651
self .prefs_root = prefs_root
650
652
self .config = config
@@ -658,6 +660,7 @@ def __init__(self, logger, prefs_root, config, test_type, extra_prefs,
658
660
self .package_name = package_name
659
661
self .certutil_binary = certutil_binary
660
662
self .ca_certificate_path = ca_certificate_path
663
+ self .allow_list_paths = allow_list_paths
661
664
662
665
def create (self , ** kwargs ):
663
666
"""Create a Firefox profile and return the mozprofile Profile object pointing at that
@@ -669,6 +672,7 @@ def create(self, **kwargs):
669
672
670
673
profile = FirefoxProfile (preferences = preferences ,
671
674
restore = False ,
675
+ allowlistpaths = self .allow_list_paths ,
672
676
** kwargs )
673
677
self ._set_required_prefs (profile )
674
678
if self .ca_certificate_path is not None :
@@ -795,7 +799,7 @@ def __init__(self, logger, binary, package_name, prefs_root, test_type,
795
799
stackfix_dir = None , binary_args = None , timeout_multiplier = None , leak_check = False ,
796
800
asan = False , chaos_mode_flags = None , config = None ,
797
801
browser_channel = "nightly" , headless = None , preload_browser = False ,
798
- specialpowers_path = None , debug_test = False , ** kwargs ):
802
+ specialpowers_path = None , debug_test = False , allow_list_paths = None , ** kwargs ):
799
803
Browser .__init__ (self , logger )
800
804
801
805
self .logger = logger
@@ -826,7 +830,8 @@ def __init__(self, logger, binary, package_name, prefs_root, test_type,
826
830
binary ,
827
831
package_name ,
828
832
certutil_binary ,
829
- ca_certificate_path )
833
+ ca_certificate_path ,
834
+ allow_list_paths )
830
835
831
836
if preload_browser :
832
837
instance_manager_cls = PreloadInstanceManager
@@ -899,7 +904,7 @@ def __init__(self, logger, binary, package_name, prefs_root, webdriver_binary, w
899
904
disable_fission = False , stackfix_dir = None , leak_check = False ,
900
905
asan = False , chaos_mode_flags = None , config = None , browser_channel = "nightly" ,
901
906
headless = None , debug_test = False , profile_creator_cls = ProfileCreator ,
902
- ** kwargs ):
907
+ allow_list_paths = None , ** kwargs ):
903
908
904
909
super ().__init__ (logger , binary , webdriver_binary , webdriver_args )
905
910
self .binary = binary
@@ -927,7 +932,8 @@ def __init__(self, logger, binary, package_name, prefs_root, webdriver_binary, w
927
932
binary ,
928
933
package_name ,
929
934
certutil_binary ,
930
- ca_certificate_path )
935
+ ca_certificate_path ,
936
+ allow_list_paths )
931
937
932
938
self .profile = profile_creator .create ()
933
939
self .marionette_port = None
0 commit comments