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!";
|
this.end.textContent = "Tests finished. Close this window!";
|
||||||
|
|
||||||
// Send the quit request
|
// Send the quit request
|
||||||
const r = new XMLHttpRequest();
|
fetch(`/tellMeToQuit?browser=${escape(this.browser)}`, {
|
||||||
r.open("POST", `/tellMeToQuit?browser=${escape(this.browser)}`, false);
|
method: "POST",
|
||||||
r.send(null);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_info(message) {
|
_info(message) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user