summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fledge/tentative/resources/fenced-frame.sub.py
blob: c29bb6fecccf5dc47ef82e4dc2fda4991b993f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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>
        <body>
        <script>
        {{GET[script]}}
        </script>
        </body>
        </html>
     """