Rewrite postMessage_event_properties to make it more robust.
Remove trailing whitespace.
Add additional assertions to postMessage_event_properties.htm.
Merge pull request #1212 from Ms2ger/postMessage_event_properties

Rewrite postMessage_event_properties to make it more robust; r=jgraham+zcorpan