Skip to main content

Bug Tracker

Side navigation

#936 closed bug (fixed)

Opened February 09, 2007 02:53AM UTC

Closed March 24, 2007 05:48PM UTC

Last modified December 04, 2009 08:28AM UTC

Rework xmlhttp usage to poll object instead of attaching onreadystatechange handler

Reported by: mikael.karon@karon.s Owned by:
Priority: minor Milestone:
Component: ajax Version:
Keywords: Cc:
Blocked by: Blocking:
Description

As we all know the IE GC is at best a-royal-piece-of-garbage (pun intended), especially when it comes to closures and event handling. By attaching javascript to an ActiveX object (any DOM element and the XMLHttpRequest object) and then referring to the object itself one runs the risk of fcking the GC.

There are several tricks that prevent (or lessen the effects) this by variable reassigning and so on, but why not circumvent that entirely? Alex Russell (Dojo fame) posted a little about it at http://alex.dojotoolkit.org/?p=528 and I think it makes sense. By observing the request rather then trying to rig it one can escape the death trap known as the IE GC.

Attachments (2)
  • patch.2.txt (5.6 KB) - added by mikael.karon@karon.s February 09, 2007 02:55AM UTC.

    Suggested patch for XMLHTTP inspection rather then rigging

  • patch.txt (5.6 KB) - added by mikael.karon@karon.s February 09, 2007 02:55AM UTC.

    Suggested patch for XMLHTTP inspection rather then rigging

Change History (3)

Changed February 09, 2007 05:42AM UTC by mikael.karon comment:1

forgot to mention that this is against [1295]

Changed February 22, 2007 11:34PM UTC by choan comment:2

This is a (previous) duplicate of #991, already fixed.

Changed March 24, 2007 05:48PM UTC by john comment:3

need: → Review
resolution: → fixed
status: newclosed
type: enhancementbug
version: 1.1