I'm working on a firefox add-on and try to close a window with javascript. I'm using Firefox 24. When I try this:
window.close()
The window close but Firefox always ask me to confirm the closure. I don't want to see this confirmation box.
I tried to set dom.allow_scripts_to_close_windows in about:config, that will allow you to use window.close() function to close the window but it doesn't work.
I tried to disable the option browser.warnOnQuit in about:config but it doesn't work.
Has anyone a solution?
Thanks in advance
 
     
    