Closed Bug 1579941 Opened 5 years ago Closed 5 years ago

Add browser.history.chooseDelete call

Categories

(WebExtensions :: Experiments, enhancement, P2)

enhancement
Points:
2

Tracking

(Not tracked)

RESOLVED WONTFIX

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?

(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 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?

Flags: needinfo?(mixedpuppy)
Priority: -- → P2

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.

Flags: needinfo?(mixedpuppy) → needinfo?(philipp)

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!

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(philipp)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.