Closed Bug 1755598 Opened 2 years ago Closed 2 years ago

wpt runner doesn't restore prefs set in .ini files

Categories

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

Default
defect

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: hiro, Assigned: jgraham)

References

(Depends on 1 open bug)

Details

Attachments

(3 files)

Attached file wpt-pref-tests

For wpt reftests, we explicitly set apz.allow_zooming to false. If a wpt reftest sets apz.allow_zooming to true, then subsequenst reftests run with the pref is true for some reasons.

Attaching file a patch to add two wpt reftests demonstrating this issue.

Depends on: 1742484

Thanks, this testcase was useful. It seems like we're always clearing the pref value instead of restoring the previous value, because the pref reading function is incorrectly returning None for all pref values. I've got a patch, but need to run it through try since it will presumably affect some test results.

Previously we were always returning None from the pref getter, so we'd
only clear the pref value rather than restoring the previous value.

Assignee: nobody → james
Status: NEW → ASSIGNED

https://treeherder.mozilla.org/jobs?repo=try&selectedTaskRun=OsXIGo1zTKS2FTI6CR7-xQ.0&revision=8463feedeec3ea82f20a340b4d90e1af7a4074c2 is a try run here. Surprisingly I don't see many test status changes, but it does seem to pass the tests that hiro wrote.

Attachment #9264077 - Attachment mime type: application/octet-stream → text/plain
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/autoland/rev/737f6ccbbe11
Fix restoring wpt pref values, r=whimboo
https://hg.mozilla.org/integration/autoland/rev/5573d3d3f9e8
Test for setting and restoring pref values, r=whimboo
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32991 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: