Closed Bug 2012740 Opened 1 month ago Closed 1 month ago

[wptrunner] Extra preferences as specified via "--setpref" should not be overwritten with required preferences

Categories

(Testing :: web-platform-tests, defect, P2)

defect
Points:
2

Tracking

(firefox149 fixed)

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m19], [wptsync upstream])

Attachments

(1 file)

While working on bug 1998347 I put the preference for enabling async mouse events as a required preference into wptrunner. When investigating issues by using the --setpref argument of ./mach wpt I saw that the value as specified always gets overwritten by the required prefs one. As such I'm not able to force the preference to be disabled.

As it can be seen at the following file we first set the extra preferences and then apply the required prefs on top:
https://searchfox.org/firefox-main/source/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/firefox.py#708,714,748

We should get this fixed so that the extra prefs actually have higher priority.

Restructure preference handling to build all preferences before profile creation,
ensuring extra_prefs are applied last with proper type casting for correct override
behavior. Split logic into _get_base_prefs(), _get_test_type_prefs(), and
_get_debug_prefs() for better code organization and maintainability.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Blocks: 1851812
Severity: -- → S3
Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m19]
Blocks: parent-actions
No longer blocks: 1851812
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/57427 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m19] → [webdriver:m19], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/197da7bddb16 https://hg.mozilla.org/integration/autoland/rev/2624fb1494ad [wpt PR 57427] - [Gecko Bug 2012740] [wptrunner] Refactor preference building and fix override precedence., a=testonly
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: