Bug https://bugs.webkit.org/show_bug.cgi?id=74038 adds a legacy form of window.postMessage. On using that legacy implementation, a deprecation warning should be issued.