Skip to content
Bug Barometer
All issues
Solution Deployed

Uncategorized

"postMessage is not a valid function" in Salesforce app and safari browser

Summary

In the Spring 19 Org, Window.postMessage() results in the following error when using Firefox or Safari (but works correctly in Chrome):

This page has an error. You might just need to refresh it.
Action failed: c:sendmsgtovf$controller$sendToVF [vfWindow.postMessage is not a function. (In 'vfWindow.postMessage(message, vfOrigin)', 'vfWindow.postMessage' is undefined)]
Failing descriptor: {c:sendmsgtovf$controller$sendToVF}

The same code in Winter '19 does not throw an error.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Deployed with 8 reports

    Nov 30, 2026