dialog-button custom element does not support passing params to SubDialogManager
Categories
(Firefox :: Settings UI, defect)
Tracking
()
| 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 | ||
Comment 1•10 months ago
|
||
Updated•10 months ago
|
Comment 2•10 months ago
|
||
Updating severity to triage. Looks like there's already a patch in flight.
Comment 4•9 months ago
|
||
| bugherder | ||
Updated•9 months ago
|
Description
•