Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html

Issue 2570473002: Enable the CORS preflight for sendBeacon()
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/navigation/resources/save-beacon.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html b/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html
index 4f959a4f82d85968e317245d93427a1614b47c9c..2ccf64ea190f300de4aae5c20434d447fa5eed66 100644
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html
+++ b/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-cross-origin.html
@@ -15,7 +15,8 @@ function test() {
}
shouldBeTrue('navigator.sendBeacon("http://localhost:8000/navigation/resources/save-beacon.php?name=cross-origin", "CrossOrigin");');
- var xhr = new XMLHttpRequest();
+ setTimeout(() => {
+ var xhr = new XMLHttpRequest();
xhr.open("GET", "resources/check-beacon.php?name=cross-origin");
xhr.onload = function () {
var lines = xhr.responseText.split("\n");
@@ -28,6 +29,7 @@ function test() {
finishJSTest();
};
xhr.send();
+ }, 1000);
}
</script>
</head>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/navigation/resources/save-beacon.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698