-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[py] Use XWayland for internal Python Firefox tests #15601
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
[py] Use XWayland for internal Python Firefox tests #15601
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Is there a way to also test this environment variable in test files? It would be a good addition. |
@Delta456 you mean add tests that verify it works with this env variable set and broken without? I can add those. |
Yes those. They will be very useful |
@Delta456 I added some tests. Can you give it a review? |
Looks good to me though the Lint CI didn't start correctly. Can you restart that? |
That was actually a legitimate linting error. I just fixed it and it's running now. |
CI is failing because of #15608 (unrelated to this PR) |
User description
🔗 Related Issues
Fixes #15584
💥 What does this PR do?
There are several issues related to setting window size/position when running Firefox under Wayland display server (Linux). This PR sets the
MOZ_ENABLE_WAYLAND=0
environment variable in our PyTest configuration, so Firefox uses XWayland instead.(This should fix several CI failures)
🔄 Types of changes
PR Type
Bug fix
Description
Set
MOZ_ENABLE_WAYLAND=0
for Firefox in tests to use XWayland.Fixes issues with window size/position under Wayland on Linux.
Resolves CI failures related to Firefox on Wayland.
Changes walkthrough 📝
conftest.py
Configure Firefox to use XWayland in tests
py/conftest.py
MOZ_ENABLE_WAYLAND=0
for Firefox.