Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tor Browser overrides the Accept-Languages header in the page-layout tests #7354

Open
cfm opened this issue Nov 25, 2024 · 0 comments
Open
Labels
bug i18n Anything related to translation or internationalization of SecureDrop tests

Comments

@cfm
Copy link
Member

cfm commented Nov 25, 2024

Description

Tor Browser's anti-fingerprinting protections prevent both profile-based and options-based configuration from overriding the Accept-Language header used to test localization in the Source Interface's page-layout tests.

Steps to Reproduce

  1. Run LOCALES="de_DE" make translation-test.
  2. Examine the contents of securedrop/tests/functional/pageslayout/screenshots.

Expected Behavior

All screenshots are in German.

Actual Behavior

Journalist Interface screenshots are in German. Source Interface screenshots are in English.

Comments

I tried using Selenium Wire to override the Accept-Language header on the wire, but it conflicts with tbselenium.12

tor-browser-accept-languages.txt

Footnotes

  1. https://gist.github.com/woswos/38b921f0b82de009c12c6494db3f50c5?permalink_comment_id=4455252#gistcomment-4455252

  2. https://github.com/webfp/tor-browser-selenium/discussions/175

@cfm cfm added tests i18n Anything related to translation or internationalization of SecureDrop bug labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug i18n Anything related to translation or internationalization of SecureDrop tests
Projects
None yet
Development

No branches or pull requests

1 participant