Closed Bug 1688099 Opened 3 months ago Closed 2 months ago

Restore the state of the More settings twisty on load

Categories

(Toolkit :: Printing, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: mstriemer, Assigned: emalysz, Mentored)

Details

(Whiteboard: [print2020_v87])

Attachments

(1 file)

Some users might frequently want to use features within the "More settings" section, to make that easier its open/closed state should be remembered.

This could be done by recording a pref like print.more-settings.open defaulting to false, which gets set to the new open state any time the More settings section is opened or closed. This can then be restored when the More settings section is initially rendered.

The More settings section is handled by the TwistySummary custom element [1], which could take the pref name in its markup [2].

[1] https://searchfox.org/mozilla-central/rev/8dae1cc76a6b45e05198bc0d5d4edb7bf1003265/toolkit/components/printing/content/print.js#2407
[2] https://searchfox.org/mozilla-central/rev/8dae1cc76a6b45e05198bc0d5d4edb7bf1003265/toolkit/components/printing/content/print.html#156

Assignee: nobody → emalysz
Status: NEW → ASSIGNED
Pushed by emalysz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/27a09dcb7962
save more settings state in a pref and honor value on subsequent prints r=sfoster
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.