Friday, April 15, 2022

[FIXED] What is the maximum size for the postMessage method that enables inter-frame communication?

Issue

It's not clear from searching on Google and looking through documentation. What's the maximum length on a message sent via Window.postMessage (https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage)? We assume this varies by browser?


Solution

As a data point, the WebKit implementation (used by Safari and Chrome) doesn't currently enforce any limits (other than those imposed by running out of memory).

Source : https://lists.w3.org/Archives/Public/public-whatwg-archive/2009Oct/0546.html



Answered By - Kamlesh Shirbhate
Answer Checked By - David Marino (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.