Closed Bug 1686707 Opened 4 years ago Closed 3 years ago

Can't set prefs when a profile is provided

Categories

(Testing :: geckodriver, defect)

Default
defect

Tracking

(Fission Milestone:M8, firefox90 fixed)

RESOLVED FIXED
90 Branch
Fission Milestone M8
Tracking Status
firefox90 --- fixed

People

(Reporter: jgraham, Assigned: jgraham)

References

Details

Attachments

(3 files, 1 obsolete file)

If the user provides a profile it ought to be possible to set additional prefs in that profile, and to restore the profile at the end of the session so it can be reused without leaking the prefs into future sessions. Currently we just silently ignore the prefs.

Add support for reading the values passed to command line arguments in
mozrunner. This is a little difficult to do exactly like Firefox as
different arguments may be parsed differently. This patch supports the
following forms:

["--arg", "foo"]

["--arg=foo"]

Assignee: nobody → james
Status: NEW → ASSIGNED

Previously we would just ignore the command-line provided profile,
write prefs to a new profile and then use the command line provided
one. That doesn't really make sense.

Now instead we try to write the prefs to the provided profile and
restore it after the test run.

Blocks: 1525106

Setting Fission Milestone to M8 because this bug blocks Fission M8 bug 1680963.

Fission Milestone: --- → M8
Attachment #9211840 - Attachment description: Bug 1686707 - Disable tab-modal alerts in wpt, → Bug 1686707 - Only allow old modal dialogs in wpt,
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/0ab4fc850e9d Support reading command line argument values in rust mozrunner, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/780388f3782d Make rust mozprofile profile path public, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/46cbb03eb060 Support writing prefs to a command-line provided profile, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/ebd4998c14f6 Only allow old modal dialogs in wpt, r=whimboo

Backout changeset for causing marionette failures at test_fission_autostart.py .

Push with failures

Failure log

also failes here python/test_mochitest_integration.py
Failure log

Backout link

Flags: needinfo?(james)
Depends on: 1707876
Attachment #9211840 - Attachment is obsolete: true
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/d6c151fa0bba Support reading command line argument values in rust mozrunner, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/baffdc510ceb Make rust mozprofile profile path public, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/9f13338b2838 Support writing prefs to a command-line provided profile, r=webdriver-reviewers,whimboo
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/3b78b12a05c3 Support reading command line argument values in rust mozrunner, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/e48f46d4cfaf Make rust mozprofile profile path public, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/74337795039c Support writing prefs to a command-line provided profile, r=webdriver-reviewers,whimboo
Flags: needinfo?(james)

(In reply to Web Platform Test Sync Bot (Matrix: #interop:mozilla.org) from comment #9)

Failed to create upstream wpt PR due to merge conflicts. This requires fixup
from a wpt sync admin.

James, can you please check what's wrong here?

Flags: needinfo?(james)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/29117 for changes under testing/web-platform/tests

This didn't actually have any wpt changes, but the backout did. So the bot wasn't too happy. Anyway I've pacified it with an empty PR.

Flags: needinfo?(james)
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: