This is a testharness.js-based test.
PASS General setup 
PASS Set location.protocol = location.protocol 
PASS Set location.protocol to http:gunk 
PASS Message listener 
FAIL Message listener Cannot read property 'test' of undefined
PASS Message listener 
Harness: the test ran to completion.

