websocket.https.html (2272B)
1 <!DOCTYPE html> 2 <!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec upgrade-insecure-requests/` --> 3 <html> 4 <head> 5 <meta charset="utf-8"> 6 <meta name="timeout" content="long"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="/common/security-features/resources/common.sub.js"></script> 10 <script src="../../../generic/test-case.sub.js"></script> 11 </head> 12 <body> 13 <script> 14 TestCase( 15 [ 16 { 17 "expectation": "allowed", 18 "origin": "cross-ws-downgrade", 19 "redirection": "no-redirect", 20 "source_context_list": [ 21 { 22 "policyDeliveries": [ 23 { 24 "deliveryType": "http-rp", 25 "key": "upgradeInsecureRequests", 26 "value": "upgrade" 27 } 28 ], 29 "sourceContextType": "worker-module" 30 } 31 ], 32 "source_scheme": "https", 33 "subresource": "websocket", 34 "subresource_policy_deliveries": [], 35 "test_description": "Upgrade-Insecure-Requests: Expects allowed for websocket to cross-ws-downgrade origin and no-redirect redirection from https context." 36 }, 37 { 38 "expectation": "allowed", 39 "origin": "same-ws-downgrade", 40 "redirection": "no-redirect", 41 "source_context_list": [ 42 { 43 "policyDeliveries": [ 44 { 45 "deliveryType": "http-rp", 46 "key": "upgradeInsecureRequests", 47 "value": "upgrade" 48 } 49 ], 50 "sourceContextType": "worker-module" 51 } 52 ], 53 "source_scheme": "https", 54 "subresource": "websocket", 55 "subresource_policy_deliveries": [], 56 "test_description": "Upgrade-Insecure-Requests: Expects allowed for websocket to same-ws-downgrade origin and no-redirect redirection from https context." 57 } 58 ], 59 new SanityChecker() 60 ).start(); 61 </script> 62 <div id="log"></div> 63 </body> 64 </html>