Show a confirmation dialog for browser.tabs.warnOnClose correctly on Firefox 29 and later