mirror of
https://github.com/daijro/camoufox.git
synced 2026-11-19 00:07:28 +00:00
Leave EME at the build's default for Windows identities
Windows Firefox has PlayReady behind EME; a Linux build cannot supply it, so turning media.eme.enabled on claimed more than the build delivers. The pref is no longer among the Windows behaviour defaults, and the Python and TypeScript tests now require that it is left alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4b48bffd74
commit
4e2515bc64
@@ -86,13 +86,19 @@ def test_windows_identity_gets_windows_behaviour(launch):
|
||||
assert prefs[pref] == value
|
||||
# Spot checks against stock Firefox on Windows, so an edit to the table
|
||||
# cannot quietly agree with itself.
|
||||
assert prefs["media.eme.enabled"] is True
|
||||
assert prefs["middlemouse.paste"] is False
|
||||
assert prefs["general.autoScroll"] is True
|
||||
assert prefs["layout.word_select.eat_space_to_next_word"] is True
|
||||
assert prefs["full-screen-api.transition-duration.enter"] == "200 200"
|
||||
|
||||
|
||||
def test_windows_identity_leaves_eme_off(launch):
|
||||
# Windows Firefox has PlayReady behind EME; a Linux build cannot, so EME on
|
||||
# would claim key systems it does not deliver. The build's default stands.
|
||||
_, prefs = launch(WIN_UA)
|
||||
assert "media.eme.enabled" not in prefs
|
||||
|
||||
|
||||
@pytest.mark.parametrize("ua", [MAC_UA, LIN_UA])
|
||||
def test_other_identities_keep_host_behaviour(launch, ua):
|
||||
_, prefs = launch(ua)
|
||||
|
||||
Reference in New Issue
Block a user