[wp-trac] [WordPress Trac] #31687: Customizer: fix errors when embedded in a different origin

WordPress Trac noreply at wordpress.org
Wed Mar 25 22:16:09 UTC 2015


#31687: Customizer: fix errors when embedded in a different origin
------------------------------+-------------------------
 Reporter:  mattwiebe         |       Owner:  ocean90
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  4.2
Component:  Customize         |     Version:  4.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+-------------------------
Changes (by mattwiebe):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Apologies for apparently not knowing how to test my own code, but this
 still can create `SecurityError`s.

 [attachment:31687.4.diff] fixes this by ensuring that `targetWindow`
 always has its `set` method overridden before a `window` object could wind
 up in there.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31687#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list