LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jan 2018 17:10:05 +0000 (17:10 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jan 2018 17:10:05 +0000 (17:10 +0000)
https://bugs.webkit.org/show_bug.cgi?id=181286

Patch by Youenn Fablet <youenn@apple.com> on 2018-01-05
Reviewed by Alex Christensen.

Test previously expected upgrade-insecure-requests header to be inserted in a HTTP request.
Given the request URL is HTTPS, there is no need for that header.

* web-platform-tests/service-workers/service-worker/fetch-event.https-expected.txt:
* web-platform-tests/service-workers/service-worker/fetch-event.https.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226449 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event.https-expected.txt
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event.https.html

index 45f583a..1ce6ed4 100644 (file)
@@ -1,3 +1,16 @@
+2018-01-05  Youenn Fablet  <youenn@apple.com>
+
+        LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event.https.html should not expect Upgrade-Insecure Requests header
+        https://bugs.webkit.org/show_bug.cgi?id=181286
+
+        Reviewed by Alex Christensen.
+
+        Test previously expected upgrade-insecure-requests header to be inserted in a HTTP request.
+        Given the request URL is HTTPS, there is no need for that header.
+
+        * web-platform-tests/service-workers/service-worker/fetch-event.https-expected.txt:
+        * web-platform-tests/service-workers/service-worker/fetch-event.https.html:
+
 2018-01-04  Youenn Fablet  <youenn@apple.com>
 
         FetchResponse should set its internal response text encoding name
index 5a10ffe..de41730 100644 (file)
@@ -1,6 +1,6 @@
 
 
-FAIL Service Worker headers in the request of a fetch event assert_unreached: unexpected rejection: assert_true: request specifies "Upgrade-Insecure Requests header as inserted by Fetch expected true got false Reached unreachable code
+PASS Service Worker headers in the request of a fetch event 
 PASS Service Worker responds to fetch event with string 
 PASS Service Worker responds to fetch event with blob body 
 PASS Service Worker responds to fetch event with the referrer URL 
index cb60dcf..240219b 100644 (file)
@@ -26,10 +26,6 @@ async_test(function(t) {
             header_names.hasOwnProperty('accept'),
             'request includes "Accept" header as inserted by Fetch'
           );
-          assert_true(
-            header_names.hasOwnProperty('upgrade-insecure-requests'),
-            'request specifies "Upgrade-Insecure Requests header as inserted by Fetch'
-          );
 
           return service_worker_unregister_and_done(t, scope);
         })