Opened 12 years ago

Closed 12 years ago

#3956 closed defect (fixed)

infinite loop in dijit._onTouchNode() (_base/focus.js)

Reported by: simonjb Owned by: bill
Priority: high Milestone: 0.9
Component: Dijit Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

When running inside the doh test runner, dijit._onTouchNode() enters an infinite loop. To reproduce:

  1. apply the attached patch that illustrates the problem
  2. open a FF2 browser window with firebug
  3. open the firebug console
  4. run the dijit tests: util/doh/runner.html?testModule=dijit.tests.module
  5. when the tests have finished click on the test log text
  6. should see "looping..." repeatedly logged

The attached patch disables all tests other that the Container tests. I'm getting different behaviour when all tests are enabled. Instead of an infinite loop I am seeing initially an error "s has no properties", followed by a series of "dijit is not defined" errors when I click on the test log text.

Attachments (1)

loop.diff (1.2 KB) - added by simonjb 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by simonjb

Attachment: loop.diff added

comment:1 Changed 12 years ago by bill

Resolution: fixed
Status: newclosed

(In [9923]) Fix infinite loop when dojo itself is running in an iframe. Fixes #3956.

Note: See TracTickets for help on using tickets.