mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Issue #1366 - Completely remove showModalDialog
This commit is contained in:
parent
abb2afe2a7
commit
8d600c51ed
38 changed files with 14 additions and 1313 deletions
|
|
@ -306,28 +306,6 @@ function runtestsInner()
|
|||
|
||||
w.close();
|
||||
|
||||
// Test that showModalDialog() works normally and then gets blocked
|
||||
// on the second call.
|
||||
if (window.showModalDialog) {
|
||||
w = window.open();
|
||||
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
|
||||
is (promptState, void(0), "Wrong prompt state");
|
||||
|
||||
try {
|
||||
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
|
||||
ok(false, "showModalDialog call should throw an exception");
|
||||
} catch(e) {
|
||||
is(e.name, "NS_ERROR_NOT_AVAILABLE", "Wrong exception");
|
||||
}
|
||||
is (promptState.method, "confirm", "Wrong prompt method called");
|
||||
is (promptState.parent, w, "Wrong confirm parent");
|
||||
is (promptState.msg, "Prevent this page from creating additional dialogs",
|
||||
"Wrong confirm message");
|
||||
promptState = void(0);
|
||||
|
||||
w.close();
|
||||
}
|
||||
|
||||
mockPromptFactoryRegisterer.unregister();
|
||||
mockPromptServiceRegisterer.unregister();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue