openDialog

Andrew McKay amckay at mozilla.com
Wed Jun 21 17:53:36 UTC 2017


Hi there,

openDialog or xul is not available in WebExtensions.

I think you'll have to open a window or an iframe.

On 21 June 2017 at 06:38, Capt'n Flash <contact at captnflash.fr> wrote:

> Hello,
>
>
>
> We are trying to migrate our Firefox extension to the new webextension
> standard.
>
>
>
> Actually, when we click on a button, we are able to open a modal dialog.
>
> The goal of this dialog is to prompt a message from the user, and to save
> the result in a variable.
>
>
>
> We to it llike this :
>
>
>
> openDialog("chrome://myextension/content/addcomment.xul", "", "resizable=yes,
> modal", params, retVals).focus();
>
>
>
>
>
>
>
>
>
>
>
> I need to keep this functionnality with webextension, but I get this error
> message : *openDialog is not a function*
>
>
>
> How can I do this with webextensions ?
>
>
>
>
>
> Thanks you in advance for your help,
>
>
>
>
>
> Regards,
>
>
>
>
>
> _______________________________________________
> Webextensions-support mailing list
> Webextensions-support at mozilla.org
> https://mail.mozilla.org/listinfo/webextensions-support
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/webextensions-support/attachments/20170621/14199181/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 31706 bytes
Desc: not available
URL: <http://mail.mozilla.org/pipermail/webextensions-support/attachments/20170621/14199181/attachment-0001.jpg>


More information about the Webextensions-support mailing list