Closed Bug 495055 Opened 17 years ago Closed 17 years ago

nsIWebBrowserStream::AppendToStream(const PRUint8 *aData, PRUint32 aLen) does not return for data greater than 64 kbyte

Categories

(Core Graveyard :: Embedding: APIs, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kerim.m, Unassigned)

References

Details

(Keywords: dev-doc-complete)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) The nsIWebBrowserStream::AppendToStream(const PRUint8 *aData, PRUint32 aLen) cannot process data over 64 kybtes. A workaround is to split up the data and append only chunks of 64 kbytes, but the AppendToStream function should either do that itself or report an error. Reproducible: Always Steps to Reproduce: 1. open nsIWebBrowserStream 2. call AppendToStream(data,len) with data having a length of more than 64 kbytes Actual Results: freezes, no return Expected Results: NSFAILED( nsresult ) or the function should have splitted up the chunks to the correct buffer limits and therefore succeded in appending the data
OS: Windows XP → All
Product: Firefox → Core
Hardware: x86 → All
http://mxr.mozilla.org/mozilla-central/source/embedding/browser/webBrowser/nsEmbedStream.cpp#83 83 rv = NS_NewPipe(getter_AddRefs(bufInStream), 84 getter_AddRefs(bufOutStream)); That pipe's limited to storing 64 KB at a time, it should probably be unlimited.
Component: General → Embedding: APIs
QA Contact: general → apis
By "it" I mean that nsEmbedStream should pass the right arguments to NS_NewPipe to make it unlimited.
This bug can be closed now as it was fixed in 293670.
Sorry here is the link: bug 293670
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Depends on: 293670
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.