Startup failure when running `mach jstestbrowser`: MOZ_RELEASE_ASSERT(IsInAutomation())
Categories
(Testing :: General, defect)
Tracking
(Not tracked)
People
(Reporter: sfink, Unassigned)
References
Details
Attachments
(1 file)
17.88 KB,
text/plain
|
Details |
It doesn't always happen, but usually (4 of 6 runs) when I run MOZ_DISABLE_NONLOCAL_CONNECTIONS=0 mach jstestbrowser
I get the above error message. I will attach a log. (The environment variable is to avoid bug 1839769)
Comment 1•2 months ago
|
||
so why is jstestbrowser failing the isInAutomation() check, especially intermittently. I believe the pref needs to be set:
https://searchfox.org/mozilla-central/search?q=turn_off_all_security_so_that_viruses_can_take_over_this_computer&path=&case=false®exp=false
Reporter | ||
Comment 2•2 months ago
|
||
The crashing function is being called from SpecialPowers. Why can you only use SpecialPowers in automation? How does any testing work locally if that's a restriction? I'm confused.
Reporter | ||
Comment 3•2 months ago
|
||
Oh, ok. So I guess mach jstestbrowser
should be setting that? I'll try running with that setting.
Comment 4•2 months ago
|
||
so specialpowers does a lot of things that would violate security, and it should work with ./mach test ...
because we set the preference. I am not sure what jstestbrowser
does for a profile or environment vars.
Reporter | ||
Comment 5•2 months ago
|
||
Huh, I see a file that looks like it's trying to set it. I guess it's not being loaded or something.
Reporter | ||
Comment 6•2 months ago
|
||
(My guess is that mozharness is setting it in automation.)
MOZ_DISABLE_NONLOCAL_CONNECTIONS=0 mach jstestbrowser --setpref security.turn_off_all_security_so_that_viruses_can_take_over_this_computer=1
still crashes with the assert.
Reporter | ||
Comment 7•2 months ago
|
||
Hm. I'm getting confused by the load sequencing, but it looks like this might be entirely caused by bug 1839769: if MOZ_DISABLE_NONLOCAL_CONNECTIONS is set to 0, then it just skips looking at the IsInAutomation() pref entirely.
Reporter | ||
Updated•2 months ago
|
Description
•