Opened 2 years ago
Closed 2 years ago
#14882 closed bug (fixed)
document.ready doesn't fire in iOS7 for jQuery loaded after window load event fires
| Reported by: | m_gol | Owned by: | m_gol |
|---|---|---|---|
| Priority: | low | Milestone: | 1.11.1/2.1.1 |
| Component: | core | Version: | 2.1.0 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
document.ready doesn't fire in iOS7 for jQuery loaded after window load event fires. This causes one test to fail, see e.g.: http://swarm.jquery.org/result/1680275
Change History (5)
comment:1 Changed 2 years ago by m_gol
- Component changed from unfiled to core
- Milestone changed from None to 1.11.1/2.1.1
- Priority changed from undecided to low
comment:2 Changed 2 years ago by m_gol
- Owner set to m_gol
- Status changed from new to assigned
comment:3 Changed 2 years ago by m_gol
It seems that to trigger this bug one has to:
- load jQuery asynchronously
- execute some code in document ready of this new jQuery
- do it all in an iframe
Removing any condition from these 3 makes the bug disappear.
This seems so improbable (and core/ready code so fragile & hard to test) that I'd prefer to just blacklist iOS7 for this specific test.
I'll hold off until Monday meeting before commiting anything.
comment:4 Changed 2 years ago by dmethvin
Let's just blacklist the test for now and wait for a real report of a problem.
comment:5 Changed 2 years ago by Michał Gołębiowski
- Resolution set to fixed
- Status changed from assigned to closed
Core: Blacklist the ready test on async-loaded jQuery in iOS7
Fixes #14882
Changeset: 551578eb3676f67cccd8a91a582c2225bc970cac

This test also *sometimes* fails on IE11 on TestSwarm. On iOS7, however, it fails all the time, on TestSwarm & locally and even if both timeouts (from dynamic_ready.html and dont_return.php) are bumped significantly.