mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1038844 - Flip the scary automation pref for crashtests and marionette. r=jgriffin
This commit is contained in:
parent
51cadd7069
commit
7239458847
@ -197,6 +197,8 @@ class RefTest(object):
|
||||
# release engineering and landing on multiple branches at once.
|
||||
if special_powers and (manifest.endswith('crashtests.list') or manifest.endswith('jstests.list')):
|
||||
addons.append(os.path.join(SCRIPT_DIRECTORY, 'specialpowers'))
|
||||
# SpecialPowers requires insecure automation-only features that we put behind a pref.
|
||||
prefs['security.turn_off_all_security_so_that_viruses_can_take_over_this_computer'] = True
|
||||
|
||||
# Install distributed extensions, if application has any.
|
||||
distExtDir = os.path.join(options.app[ : options.app.rfind(os.sep)], "distribution", "extensions")
|
||||
|
@ -23,6 +23,9 @@ loader.loadSubScript("chrome://marionette/content/EventUtils.js", utils);
|
||||
loader.loadSubScript("chrome://marionette/content/ChromeUtils.js", utils);
|
||||
loader.loadSubScript("chrome://marionette/content/atoms.js", utils);
|
||||
|
||||
// SpecialPowers requires insecure automation-only features that we put behind a pref.
|
||||
Services.prefs.setBoolPref('security.turn_off_all_security_so_that_viruses_can_take_over_this_computer',
|
||||
true);
|
||||
let specialpowers = {};
|
||||
loader.loadSubScript("chrome://specialpowers/content/SpecialPowersObserver.js",
|
||||
specialpowers);
|
||||
|
Loading…
Reference in New Issue
Block a user