ios/testing/data/http_server_files/window_open.html
| Code | Expected result |
|---|---|
| about:blank opened in new tab | |
| about:blank opened in new tab | |
| Hash-only location.replace in new empty window | |
| webScenarioWindowOpenRegularLink | about:blank opened in new window or tab |
| (via target) | |
| webScenarioWindowOpenWithSpecialURL | /..; opened in new window or tab |
| webScenarioWindowOpenRegularLinkMultipleTimes | about:blank opened in new window or tab |
| (via target) | |
| webScenarioWindowOpenWithJavaScriptInHref | about:blank opened in a new window or tab |
| (via window.open() on a <a href>) | |
| webScenarioWindowOpenWithButtonOnClick | about:blank opened in a new window or tab |
| (via window.open() in a onclick) | |
| webScenarioWindowOpenTabWithAssignmentToHref | about:blank page opened in new window or tab |
| (via assignment to window.location.href) | |
| webScenarioWindowOpenWithMetaRefresh | about:blank page opened in new window or tab |
| (via Meta-Refresh in new window) | |
| webScenarioWindowOpenWithPreventDefaultLink | about:blank opened in a new window, with an href and a preventDefault |
| Open a window and set window.location after reading title | |
| Open a window and call location.assign on it | |
| webScenarioWindowOpenBlankTargetWithImmediateClose | Open a window with target=_blank that immediately closes itself |
| webScenarioWindowOpenSameURLWithBlankTarget | Open same window with target=_blank |
| webScenarioWindowOpenWithDelayedClose | Open a window that closes itself after two seconds |
| Trying to close the current window should fail. | |
| Open a window, then inject a window.open call into that window. | |