Opened 10 years ago
Closed 10 years ago
#32666 closed defect (bug) (fixed)
QUnit tests notice
Reported by: | netweb | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
Description
When running grunt qunit
or grunt precommit
etc the following error is displayed:
XMLHttpRequest cannot load http://example.org/. Origin file:// is not allowed by Access-Control-Allow-Origin.
Attachments (1)
Change History (6)
#2
@
10 years ago
- Component changed from Build/Test Tools to Customize
- Owner changed from iseulde to westonruter
- Version changed from trunk to 4.1
#4
@
10 years ago
- Keywords has-patch added; needs-patch removed
OK, I have one approach in 32666.diff. The issue is that the customize-settings.js
fixture uses example.org
in the wp.customize.settings.url
settings. The Customizer is trying to load the content for the Customizer Preview. So the quick solution is to just cancel the Ajax request entirely. This eliminates the XHR warning. Thoughts?
Note: See
TracTickets for help on using
tickets.
This is caused by the customizer tests. Looks like this was introduced in [30919].