[wp-trac] [WordPress Trac] #31687: Customizer: fix errors when embedded in a different origin
WordPress Trac
noreply at wordpress.org
Wed Mar 18 20:40:13 UTC 2015
#31687: Customizer: fix errors when embedded in a different origin
--------------------------+------------------------------
Reporter: mattwiebe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+------------------------------
Changes (by mattwiebe):
* keywords: => has-patch
Comment:
An alternative approach would just be not using `wp.customize.Value` for
the `targetWindow` property. I don't think any of the sugar there is
needed that badly. This would remove the try/catch overhead for every
single `api.Value` instance in the Customizer.
For the `document.title` part, we could do a try/catch initially and
remember whether it's an accessible origin or not, sidestepping the
try/catch every time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31687#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list