Bug Tracker

Opened 9 years ago

Closed 9 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 9 years ago by m_gol

Component: unfiledcore
Milestone: None1.11.1/2.1.1
Priority: undecidedlow

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.

comment:2 Changed 9 years ago by m_gol

Owner: set to m_gol
Status: newassigned

comment:3 Changed 9 years ago by m_gol

It seems that to trigger this bug one has to:

  1. load jQuery asynchronously
  2. execute some code in document ready of this new jQuery
  3. 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.

Last edited 9 years ago by m_gol (previous) (diff)

comment:4 Changed 9 years ago by dmethvin

Let's just blacklist the test for now and wait for a real report of a problem.

comment:5 Changed 9 years ago by Michał Gołębiowski

Resolution: fixed
Status: assignedclosed

Core: Blacklist the ready test on async-loaded jQuery in iOS7

Fixes #14882

Changeset: 551578eb3676f67cccd8a91a582c2225bc970cac

Note: See TracTickets for help on using tickets.