On 16/04/12 18:20, lkcl luke wrote:
> On Mon, Apr 16, 2012 at 6:13 PM, Phil Charlesworth
> <[email protected]>  wrote:
>    
>> On 16/04/12 17:54, lkcl luke wrote:
>>      
>>> On Mon, Apr 16, 2012 at 5:50 PM, Phil Charlesworth
>>> <[email protected]>    wrote:
>>>
>>>
>>>        
>>>> ...
>>>> I will attempt to narrow down which commit cause this problem.
>>>>
>>>>          
>>>    ack.  that'd be good.  there's been a couple of modifications to
>>> HTTPRequest, and also Window.open is now functional.  how the heck you
>>> get from Window.open to HTTPRequest.asyncPut in that stack trace i
>>> reallly don't know!
>>>
>>>    l.
>>>
>>>        
>> The last good one was e96350d...
>>      
>   ok i did two things, here:
>
>   a) an onProgress notification callback (for james) - it's supposed to
> be optional.
>
>   b) tried using ActiveXObject only for IE.
>
>   okaay... soo.... tryyyy.... in HTTPRequest.browser.py, try commenting
> out these lines:
>
> @@ -52,6 +44,11 @@ class HTTPRequest(object):
>                       localHandler.onError(response, status);
>           xmlHttp.onreadystatechange = onreadystatechange
>
> +        if hasattr(localHandler, 'onProgress'):
> +            def onprogress(evnt=None):
> +                localHandler.onProgress(evnt)
> +            xmlHttp.onprogress = onprogress
> +
>           try:
>               xmlHttp.open(method, url, True);
>               for h in headers:
>
>    
That's the one above.
> and in HTTPRequest.py try commenting out these:
>
> @@ -160,6 +166,11 @@ class HTTPRequest(object):
>                   xmlHttp, "load", self.onLoad,
>               )
>
> +        if mf.platform != 'mshtml' and mf.platform != 'ie6':
> +            mf._addXMLHttpRequestEventListener(
> +                xmlHttp, "progress", self.onProgress,
> +            )
> +
>           #try :
>           if mf.platform == 'webkit' or mf.platform == 'mshtml':
>               xmlHttp.open(method, url, True, '', '')
>    
> l.
>    
That one makes no difference.

P.

Reply via email to