WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43005, comment 6


Ignore:
Timestamp:
01/05/2018 07:10:21 PM (21 months ago)
Author:
ediamin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43005, comment 6

    initial v1  
    22
    33The main reason is in update.js we are listening for `message` event which is produced by `window.postMessage()`. Now, if any of the enqueued scripts has `postMessage('', 'http://yourdomain.com')`, then the `message` will be null and hence, `message.action` throws `Cannot read property 'action' of null` error.
     4
     5By the way, my reproduce plugin will throw the error in some of the admin pages, like plugins.php. But typing `postMessage('', 'http://yourdomain.com')` will give the error in any of the admin pages.