mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +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
|
|
@ -16,7 +16,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=414291
|
|||
|
||||
var result1 = 0;
|
||||
var result2 = 0;
|
||||
var result3 = 0;
|
||||
|
||||
window.open("data:text/html,<html><body onload='close(); opener.result1 = 1;'>", "w1");
|
||||
is(result1, 0, "window should not be opened either as modal or loaded synchronously.");
|
||||
|
|
@ -24,11 +23,6 @@ is(result1, 0, "window should not be opened either as modal or loaded synchronou
|
|||
window.open("data:text/html,<html><body onload='close(); opener.result2 = 2;'>", "w2", "modal=yes");
|
||||
is(result2, 0, "window should not be opened either as modal or data loaded synchronously.");
|
||||
|
||||
if (window.showModalDialog) {
|
||||
result3 = window.showModalDialog("data:text/html,<html><body onload='close(); returnValue = 3;'>");
|
||||
is(result3, 3, "window should be opened as modal.");
|
||||
}
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue