Revert "Merge pull request #1455 from jsantell/990762-window-postmessage-in-cscripts"

This reverts commit b7dcafa9d199a78fa2ca75ba1894b05142070170, reversing
changes made to d2e6dd66b361179ee2fdfb07d7303bc971465480.