Replace XMLHttpRequest usage with the Fetch API in Driver._quit
This is another step in what'll hopefully become a series of patches to implement PR 14287 in smaller steps.
This commit is contained in:
parent
3ac2053d97
commit
65d5974192
@ -845,9 +845,9 @@ class Driver {
|
||||
this.end.textContent = "Tests finished. Close this window!";
|
||||
|
||||
// Send the quit request
|
||||
const r = new XMLHttpRequest();
|
||||
r.open("POST", `/tellMeToQuit?browser=${escape(this.browser)}`, false);
|
||||
r.send(null);
|
||||
fetch(`/tellMeToQuit?browser=${escape(this.browser)}`, {
|
||||
method: "POST",
|
||||
});
|
||||
}
|
||||
|
||||
_info(message) {
|
||||
|
Loading…
Reference in New Issue
Block a user