Open Mingun opened 6 years ago
Setting the launcher prefs 'app.update.enabled': false
should prevent Firefox from updating.
Looks like this is now app.update.disabledForTesting
as of bug 1420514 but, as the name suggests, it only applies when either the browser is being run in automation or marionette:
Digging into the definition of IsInAutomation
:
it looks like it's based on whether or not security has been turned off. That's probably why the patches that introduced this pref also flipped security.turn_off_all_security_so_that_viruses_can_take_over_this_computer
on in a number of places:
e.g.
So presumably we need to flip those two prefs. I'm not entirely sure if that's desirable. I mean, viruses are bad.
Oh wait, according to https://bugzilla.mozilla.org/show_bug.cgi?id=1420514#c48 the MOZ_DISABLE_NONLOCAL_CONNECTIONS
environment variable also needs to be set. I'm guessing we don't want to set that for karma-runner however.
So, there might be nothing we can do here. Basically, the pref is gone. The only other option is to try to set an enterprise policy but that sounds complicated.
Of course because of it tests are not runned. I think, there shall be a method to forbid auto update of the browser when test starts. I get following output to the console: