Ensure only one instance of some dialogs

Ending with multiples windows for the same dialog isn't hard
to trigger using not modal windows
(browser.preferences.instantApply preference is true).
Merge nohamelin/no-duplicated-windows