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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/promise-access-control.php

Issue 1474983004: Mute non-CORS cross origin promise rejection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 1 month 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
Index: third_party/WebKit/LayoutTests/http/tests/security/resources/promise-access-control.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/promise-access-control.php b/third_party/WebKit/LayoutTests/http/tests/security/resources/promise-access-control.php
new file mode 100644
index 0000000000000000000000000000000000000000..837585cab23ece906bcb8b3681ed4631592d2868
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/promise-access-control.php
@@ -0,0 +1,8 @@
+<?php
+$allowOrigin = $_GET['allow'];
+if ($allowOrigin == "true") {
+ header("Access-Control-Allow-Origin: *");
+}
+header('Content-Type: application/javascript');
+?>
+new Promise(function(resolve, reject) { reject(42); });

Powered by Google App Engine
This is Rietveld 408576698