diff options
author | Moonchild <moonchild@palemoon.org> | 2020-01-22 10:35:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 10:35:12 +0000 |
commit | 8e33fa9c4b5e4fb3ddfa11b7722cc74df3f94eca (patch) | |
tree | 1fa82c7349a85865717c83dedbba38aae87fe8b9 /dom/tests/mochitest/bugs/test_bug61098.html | |
parent | 722161775b9ec9314d1b02f567e42b83115cf993 (diff) | |
parent | a9290ef91ec408fa7886b99cc59be40b413a0ce0 (diff) | |
download | UXP-8e33fa9c4b5e4fb3ddfa11b7722cc74df3f94eca.tar UXP-8e33fa9c4b5e4fb3ddfa11b7722cc74df3f94eca.tar.gz UXP-8e33fa9c4b5e4fb3ddfa11b7722cc74df3f94eca.tar.lz UXP-8e33fa9c4b5e4fb3ddfa11b7722cc74df3f94eca.tar.xz UXP-8e33fa9c4b5e4fb3ddfa11b7722cc74df3f94eca.zip |
Merge pull request #1367 from g4jc/showmodaldialog
Completely remove showModalDialog
Diffstat (limited to 'dom/tests/mochitest/bugs/test_bug61098.html')
-rw-r--r-- | dom/tests/mochitest/bugs/test_bug61098.html | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/dom/tests/mochitest/bugs/test_bug61098.html b/dom/tests/mochitest/bugs/test_bug61098.html index 4c6ce967d..ed16e099b 100644 --- a/dom/tests/mochitest/bugs/test_bug61098.html +++ b/dom/tests/mochitest/bugs/test_bug61098.html @@ -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(); |