Darin Fisher <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Matthew Wilson wrote:
> 
> >Hi,
> >
> >  I'm seeing some problems using nsIStreamConverter which seem to
> >indicate some issues when documents exceed a certain size.
> >
> >  I'm working on a mozdev extension for WML in the browser
> >(wmlbrowser.mozdev.org) and I register a stream converter from
> >text/vnd.wap.wml, using XSLT to convert the WML to HTML and sending
> >the HTML to the browser.
> >
> >  It basically works pretty well. But when larger documents get loaded
> >over HTTP, sometimes my component only gets the first chunk of the
> >document (apparently).
> >
> >  I get onStartRequest called, then onDataAvailable with only a chunk
> >of the document, then onStopRequest.
> >
> >  Is this a known problem, or should I raise a bug on it? Are there
> >any useful debug logs I could produce?
> >
> >  
> >
> 
> this is not a known problem AFAIK.  can you provide a reduced test case 
> and/or provide a HTTP log using instructions found here:
> 
> http://mozilla.org/projects/netlib/http/http-debugging.html

For a test case, download the component from here into your browser
components/ directory and restart:
http://www.mozdev.org/source/browse/~checkout~/wmlbrowser/src/failure/wml-service.js?rev=1.1&content-type=text/plain

This has logging to the Javascript console in onStartRequest,
onDataAvailable and onStopRequest.

You can then load a test file from here:
http://wmlbrowser.mozdev.org/tests/wml/vertical-scrolling.wml

This should have 200 numbered paragraphs before one saying "This is
the last paragraph." You can see what it should look like here:
http://www.mozdev.org/source/browse/~checkout~/wmlbrowser/www/tests/wml/vertical-scrolling.wml?rev=1.3&content-type=text/plain

What I typically see is around 21 of the paragraphs are loaded in the
first onDataAvailable before onStopRequest is called. The number of
paragraphs varies however.

I'll try and get those logs. Should I copy them in here or just raise
a Bugzilla?

"View Page Source" does then display the full document however.
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to