Hi,
I'm developing a xulrunner standalone application and not an extension.
Is it possible to intercept or customize dialog windows that are opened by alert or confirm or other prompts? I've implemented a windowListener (nsIWindowMediatorListener) object that calls 'onOpenWindow' on dialog creation. But I haven't found a method to modify the dialog window.
All I need is to change the default dialog window. Any advice would be helpful.
best regards,
Michael
intercepting dialogs
- patrickjdempsey
- Posts: 23686
- Joined: October 23rd, 2008, 11:43 am
- Location: Asheville NC
- Contact:
Re: intercepting dialogs
First off, you might reconsider building an application based on xulrunner at this time. Mozilla is working on completely ditching XUL to move to a whole new renderer supposedly in about a year. It's hard to say if stand-alone applications will even really be possible at that time. https://blog.mozilla.org/addons/2015/08 ... x-add-ons/
Secondly, it rather depends on exactly what the dialog is as to how to modify it. Since you are in control of the application, you have control over the contents and composition of any dialogs via the XUL overlays and how the dialog is launched.
Secondly, it rather depends on exactly what the dialog is as to how to modify it. Since you are in control of the application, you have control over the contents and composition of any dialogs via the XUL overlays and how the dialog is launched.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/