Closed Bug 1980487 Opened 10 months ago Closed 9 months ago

dialog-button custom element does not support passing params to SubDialogManager

Categories

(Firefox :: Settings UI, defect)

defect

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: emz, Assigned: emz)

References

Details

Attachments

(1 file)

For bug 1971439 I'm trying to replicate the "clear data" button. privacy.js currently opens it via a call to gSubDialog (an instance of SubDialogManager). It passes parameters to the dialog via the last argument: https://searchfox.org/mozilla-central/rev/67c9592293e8d9f143e6053c8cfd6b7723207e3c/browser/components/preferences/privacy.js#2598-2600
These end up here: https://searchfox.org/mozilla-central/rev/67c9592293e8d9f143e6053c8cfd6b7723207e3c/toolkit/modules/SubDialog.sys.mjs#997

Passing these arguments is currently not supported in dialog-button. The dialog calls into SubDialogManager here: https://searchfox.org/mozilla-central/rev/67c9592293e8d9f143e6053c8cfd6b7723207e3c/browser/components/preferences/widgets/dialog-button/dialog-button.mjs#27 but does not pass in any additional arguments.

Assignee: nobody → emz
Status: NEW → ASSIGNED

Updating severity to triage. Looks like there's already a patch in flight.

Severity: -- → S3
Pushed by ezuehlcke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a3a0f241fc66 https://hg.mozilla.org/integration/autoland/rev/dd3f4e7d33e0 Add support for passing additional dialog arguments in dialog-button element. r=reusable-components-reviewers,settings-reviewers,Gijs,hjones
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: