[OpenLayers-Trac] Re: [OpenLayers] #2913: Request abort test is failing

OpenLayers trac-20090302 at openlayers.org
Thu Nov 18 11:19:04 EST 2010


#2913: Request abort test is failing
---------------------+------------------------------------------------------
 Reporter:  tschaub  |       Owner:  tschaub        
     Type:  bug      |      Status:  new            
 Priority:  minor    |   Milestone:  2.11 Release   
Component:  Request  |     Version:  2.10           
 Keywords:           |       State:  Needs More Work
---------------------+------------------------------------------------------
Changes (by erilem):

  * state:  Review => Needs More Work


Comment:

 Replying to [comment:1 jorix]:
 >  * after open() the readyState does not change to 1 with IE and FF

 Right. This is because we don't listen to {{{onreadystatechange}}} yet
 when {{{this._object.open}}} is called. [attachment:earlier-
 onreadystatechange.patch] fixes it.


 >  * after open()+abort() the readyState does not change to 0 with Chrome
 and Safari

 It doesn't either in FF and IE, but it's hidden by the above issue. But
 I'm not sure this is a problem, we may actually not need abort to set
 readyState to 0.

 See we have two options, either make sure we listen to
 {{{onreadystatechange}}} when {{{this._object.open}}} is called
 ([attachment:earlier-onreadystatechange.patch]), or set {{{readyState}}}
 to {{{OPENED}}} in every browser ([attachment:readyStateOPENED.patch]).

 And yes, this should be reported upstream.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2913#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list