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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/eventsource/script-tests/eventsource-csp-redirect-worker.php

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 header("Content-Security-Policy: connect-src http://127.0.0.1:8000/js-test-resou rces/js-test.js http://127.0.0.1:8000/resources/redirect.php");
3 ?>
4 if (self.importScripts)
5 importScripts("/js-test-resources/js-test.js");
6
7 description("Test that basic EventSource cross-origin requests fail on blocked C SP redirect.");
8
9 self.jsTestIsAsync = true;
10
11 var es;
12
13 shouldNotThrow("es = new EventSource(\"http://127.0.0.1:8000/resources/redirect. php?code=307&cors_allow_origin=*&url=http://127.0.0.1:8080/resources/redirect.ph p\")");
14 es.onerror = function() {
15 shouldBe("es.readyState", "EventSource.CLOSED");
16 finishJSTest();
17 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698