mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 097043b336e46876e281ddec3bb014fe9c480128
This commit is contained in:
parent
ecd32570c0
commit
b68253eac0
405 changed files with 9164 additions and 3050 deletions
|
@ -48,25 +48,6 @@ expectation: %(expectation)s
|
|||
self.spec_directory = os.path.abspath(
|
||||
os.path.join(script_directory, '..', '..'))
|
||||
|
||||
def handleDelivery(self, selection, spec):
|
||||
delivery_type = selection['delivery_type']
|
||||
delivery_value = selection['delivery_value']
|
||||
|
||||
meta = ''
|
||||
headers = []
|
||||
|
||||
if delivery_value is not None:
|
||||
if delivery_type == 'meta':
|
||||
meta = '<meta http-equiv="Content-Security-Policy" ' + \
|
||||
'content="block-all-mixed-content">'
|
||||
elif delivery_type == 'http-rp':
|
||||
headers.append(
|
||||
"Content-Security-Policy: block-all-mixed-content")
|
||||
else:
|
||||
raise ValueError("Invalid delivery_type %s" % delivery_type)
|
||||
|
||||
return {"meta": meta, "headers": headers}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
generate.main(MixedContentConfig())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue