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:
Jonas Jenwald 2022-03-06 15:36:48 +01:00
parent 3ac2053d97
commit 65d5974192

View File

@ -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) {