Merge pull request #14608 from brendandahl/no-close

Don't close window from test driver.
This commit is contained in:
Jonas Jenwald 2022-02-26 10:42:45 +01:00 committed by GitHub
commit e7787ee838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -850,11 +850,6 @@ class Driver {
// Send the quit request
const r = new XMLHttpRequest();
r.open("POST", `/tellMeToQuit?browser=${escape(this.browser)}`, false);
r.onreadystatechange = function (e) {
if (r.readyState === 4) {
window.close();
}
};
r.send(null);
}