1
0
Fork 0
firefox/testing/web-platform/tests/fledge/tentative/resources/fenced-frame.sub.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

26 lines
819 B
Python

# Fenced frame HTML body. Generated by a Python file to avoid having quotes in
# the injected script escaped, which the test server does to *.html files.
def main(request, response):
response.status = (200, b"OK")
response.headers.set(b"Content-Type", b"text/html")
response.headers.set(b"Supports-Loading-Mode", b"fenced-frame")
return """
<!DOCTYPE html>
<html>
<head>
<!--- Allow injected scripts to use functions in fledge-util.sub.js --->
<base href="..">
<script src="/resources/testharness.js"></script>
<script src="/common/utils.js"></script>
<script src="resources/fledge-util.sub.js"></script>
</head>
<body>
<script>
{{GET[script]}}
</script>
</body>
</html>
"""