From 2cc262cfcffdb3d993c08dd31b0a5a47a7592310 Mon Sep 17 00:00:00 2001 From: Alexei Date: Fri, 30 Jul 2021 15:00:56 -0400 Subject: [PATCH] Fix referrer test in Firefox Nightly --- tests/selenium/pbtest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/selenium/pbtest.py b/tests/selenium/pbtest.py index dad9aa8d52..521db5b18f 100644 --- a/tests/selenium/pbtest.py +++ b/tests/selenium/pbtest.py @@ -200,6 +200,10 @@ def firefox_manager(self): ffp.set_preference('extensions.webextensions.uuids', '{"%s": "%s"}' % (self.info['extension_id'], self.info['uuid'])) + # needed for test_referrer_header() + # https://bugzilla.mozilla.org/show_bug.cgi?id=1720294 + ffp.set_preference('network.http.referer.disallowCrossSiteRelaxingDefault', False) + for i in range(5): try: opts = FirefoxOptions()