#!/usr/bin/env python3 import sys import time sys.stdout.write( 'status: 200\r\n' 'Content-Type: text/html\r\n\r\n' ) sys.stdout.flush() sys.stdout.write('{}
'.format(' ' * 1024))
sys.stdout.flush()

sys.stdout.write(
    '\n'
    '\n'
    'This page takes forever to load.
\n' 'It also blocks on an external script that takes forever to load.
\n' 'Without the fix for http://webkit.org/b/117278, navigating away from this page will crash.
\n' 'So... navigating away should not crash!
\n' '\n' '\n' '\n' '\n' ) while True: sys.stdout.write('Still loading...
\r\n') sys.stdout.flush() time.sleep(1)