webextensions-examples icon indicating copy to clipboard operation
webextensions-examples copied to clipboard

[Demo request] Can we add a demo to show how to dismiss alert in WebExtensions?

Open zhaihm opened this issue 8 years ago • 1 comments

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?

zhaihm avatar Aug 02 '17 06:08 zhaihm

For others: https://discourse.mozilla-community.org/t/how-to-programmatically-dismiss-an-alert-in-webextensions/17595

yfdyh000 avatar Aug 02 '17 06:08 yfdyh000

No activity within the last three years, closing.

rebloor avatar Jul 30 '23 23:07 rebloor