webextensions-examples
webextensions-examples copied to clipboard
[Demo request] Can we add a demo to show how to dismiss alert in WebExtensions?
I want to programmatically dismiss an alert in WebExtensions. But I don't know how to.
In Chrome extension, I can use chrome.debugger API to send a Page.handleJavaScriptDialog command. Then the alert will be dismissed.
In Firefox JSCTypes add-on, I can use view sdk to click the OK button of an alert.
But in WebExtensions, how can I achieve this? Can we add a demo to show how this can be done?
For others: https://discourse.mozilla-community.org/t/how-to-programmatically-dismiss-an-alert-in-webextensions/17595
No activity within the last three years, closing.