Update web-platform-tests to revision 097043b336e46876e281ddec3bb014fe9c480128

This commit is contained in:
WPT Sync Bot 2019-08-03 10:25:42 +00:00
parent ecd32570c0
commit b68253eac0
405 changed files with 9164 additions and 3050 deletions

View file

@ -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())