Bug 817876 - Handle multiple modal dialogs from the same origin