Showing questions for topic:
Showing questions tagged:

Hanging requests when closing the browser while offline

Hi! We have automated tests that run in Firefox across a large number of instances. There are about a hundred nodes where the browser is launched. For security reasons, t… (read more)

Hi! We have automated tests that run in Firefox across a large number of instances. There are about a hundred nodes where the browser is launched. For security reasons, there is no Internet access. When the browser closes, requests are sent to 146.75.117.91. Since there is no Internet connection, the request fails to complete, and the process terminates due to a timeout. Because the browser is controlled by geckodriver, the `driver.close()` call fails with an error. I’ve tried numerous browser startup options, but none solve the problem; the process still crashes. The only thing that works is blocking the IP address at the firewall level or in the `hosts` file. However, I’m not happy with this solution because it would need to be applied to a hundred nodes, which would create scalability issues down the line. Are there perhaps any options I missed? I also found these addresses in `omni.ja`. Could it be that they are hardcoded and cannot be changed via options?


What I tried

  1. телеметрия

options.set_preference('toolkit.telemetry.enabled', False)

options.set_preference('toolkit.telemetry.rejected', True)

options.set_preference('datareporting.healthreport.uploadEnabled', False)

options.set_preference('datareporting.policy.dataSubmissionEnabled', False)

options.set_preference('toolkit.telemetry.shutdownPingSender.enabled', False)

options.set_preference('toolkit.telemetry.shutdownPingSender.enabledFirstSession', False)

options.set_preference('toolkit.telemetry.firstShutdownPing.enabled', False)

options.set_preference("telemetry.fog.init_on_shutdown", False)


pac = """data:text/plain,function FindProxyForURL(url, host) {

   var blocked = [
       "incoming.telemetry.mozilla.org",
       "telemetry.mozilla.org",
       "normandy.cdn.mozilla.net",
       "firefox.settings.services.mozilla.com",
       "contile.services.mozilla.com",
       "push.services.mozilla.com",
       "aus5.mozilla.org",
       "versioncheck.addons.mozilla.org"
   ];
   for (var i = 0; i < blocked.length; i++) {
       if (dnsDomainIs(host, blocked[i]) || host == blocked[i]) {
           return "PROXY 127.0.0.1:1";
       }
   }
   return "DIRECT";

}"""

fp.set_preference('network.proxy.type', 2)

fp.set_preference('network.proxy.autoconfig_url', pac)


  1. Направить телеметрию в несуществующий адрес

options.set_preference('toolkit.telemetry.server', )

options.set_preference('toolkit.telemetry.server_owner', 'localhost')


  1. Или через proxy — завернуть весь трафик в несуществующий прокси
  2. только для доменов телеметрии это сложно, но можно отключить все внешние запросы при shutdown

fp.set_preference('toolkit.telemetry.shutdownPingSender.backgroundtask.enabled', False)


  1. fp.set_preference('toolkit.asyncshutdown.crash_timeout', 10000)

fp.set_preference('telemetry.fog.log.level', 'off')

fp.set_preference('telemetry.fog.artifact_build', False)

  1. Отключить фоновые задачи при shutdown

fp.set_preference('browser.background.tasks.enabled', False)

fp.set_preference('browser.backgroundtasks.scheduled.task.timeout.sec', 0)


  1. Заблокировать через hosts-like механизм Firefox

options.set_preference('network.dns.localDomains',

                 'incoming.telemetry.mozilla.org,telemetry.mozilla.org,normandy.cdn.mozilla.net')


options.set_preference('network.captive-portal-service.enabled', False)

options.set_preference('network.connectivity-service.enabled', False)


  1. Отключить Mozilla Remote Settings

options.set_preference('services.settings.server', )


  1. Glean telemetry (новая система Mozilla)

options.set_preference('telemetry.fog.artifact_build', False)

options.set_preference('telemetry.fog.test.localhost_port', -1)

options.set_preference('toolkit.telemetry.archive.enabled', False)

options.set_preference('toolkit.telemetry.bhrPing.enabled', False)

options.set_preference('toolkit.telemetry.newProfilePing.enabled', False)

options.set_preference('toolkit.telemetry.reportingPolicy.firstRun', False)

options.set_preference('toolkit.telemetry.unified', False)

options.set_preference('toolkit.telemetry.unifiedIsOptIn ', False)

options.set_preference('toolkit.telemetry.prompted ', 2)

options.set_preference('toolkit.telemetry.unifiedIsOptIn ', False)

options.set_preference('toolkit.telemetry.updatePing.enabled', False)


  1. Отключить Glean полностью

options.set_preference('datareporting.glean.enabled', False)

options.set_preference('telemetry.fog.enabled', False)

Open 3

баг браузер не реагирует на ввод текста

После включения ПК бывает, что я не могу ввести текст в браузере.(как буд-то включается режим только для чтения, что не позволяет текст ввести). горячие клавиши работают,… (read more)

После включения ПК бывает, что я не могу ввести текст в браузере.(как буд-то включается режим только для чтения, что не позволяет текст ввести). горячие клавиши работают, но текст не вводиться только в браузере. Оно само по себе проходит. Как это исправить?

Solved Archived 2 350

Фризы в firefox 142 Red OS 8 Raspberry Pi 5

При заходе на сайте ya.ru и если на нём имеется строка с видео или поиск с алисой, то начинаются сильные фризы. Это ошибка именно в firefox 142, проверенно. … (read more)

При заходе на сайте ya.ru и если на нём имеется строка с видео или поиск с алисой, то начинаются сильные фризы. Это ошибка именно в firefox 142, проверенно.

Solved Archived 15 170