mirror of
https://github.com/servo/servo.git
synced 2025-08-17 11:25:35 +01:00
Update web-platform-tests to revision 6856483bcc86322198f10e0c42385a7f9127eb66
This commit is contained in:
parent
b1a2b6b5bf
commit
ff06f1d031
265 changed files with 7539 additions and 988 deletions
|
@ -3,10 +3,7 @@ import uuid
|
|||
import hashlib
|
||||
import time
|
||||
|
||||
resourcePath = os.getcwd() + "/fetch/sec-metadata/resources/"
|
||||
|
||||
def main(request, response):
|
||||
|
||||
## Get the query parameter (key) from URL ##
|
||||
## Tests will record POST requests (CSP Report) and GET (rest) ##
|
||||
if request.GET:
|
||||
|
@ -57,7 +54,8 @@ def main(request, response):
|
|||
## Return a valid SharedWorker ##
|
||||
if key.startswith("sharedworker"):
|
||||
response.headers.set("Content-Type", "application/javascript")
|
||||
file = open(resourcePath + "sharedWorker.js", "r")
|
||||
file = open(os.path.join(request.doc_root, "fetch", "sec-metadata",
|
||||
"resources", "sharedWorker.js"), "r")
|
||||
shared_worker = file.read()
|
||||
file.close()
|
||||
return shared_worker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue