Add browser.history.chooseDelete call
Categories
(WebExtensions :: Experiments, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: bugzilla, Unassigned)
References
Details
I'd like to add a call on browser.history
that displays the "Clear Recent History..." dialog so the user can choose what data/timeframe to clear.
We need an API like this for the Interventions Quantum Bar experiment, which will offer a button that shows the Clear Recent History dialog.
It would more or less just be a wrapper call around Sanitize.showUI()
.
Shane, I've filed this separately from the experimental browser.app
API since it seems like it fits best in browser.history
and seems more useful than browser.app
to other extensions. Is this alright or should we instead roll this into our experimental API?
Comment 1•5 years ago
|
||
(In reply to Harry Twyford [:harry] from comment #0)
Shane, I've filed this separately from the experimental
browser.app
API since it seems like it fits best inbrowser.history
and seems more useful thanbrowser.app
to other extensions. Is this alright or should we instead roll this into our experimental API?
Comment 2•5 years ago
|
||
For now I'd rather see this as an experimental api and not part of history. The primary reasons for this is that a) the use case is an experiment, b) essentially the ability to do this already exists though the extension would create its own ui, and c) we predominately avoid allowing extensions to open ui. If we did allow this, it would have to be during user interaction.
ni Philipp for his thoughts.
Comment 3•5 years ago
|
||
I agree with Shane here. Please add this to your experiment for now. Extensions that want to use this can create their own UI, or even re-create a similar UI as in Firefox they'd need to maintain. Thanks for the report!
Description
•