#!/usr/bin/env python3 import sys sys.stdout.write( 'status: 200\r\n' 'Location: javascript:window.top.location="about:blank"\r\n' 'Content-Type: text/html\r\n\r\n' '\n' '
\n' '\n' 'FAIL: This content should not appear after a failed Location redirect to a javascript: URL.\n' '\n' )