Closed
Bug 495055
Opened 15 years ago
Closed 15 years ago
nsIWebBrowserStream::AppendToStream(const PRUint8 *aData, PRUint32 aLen) does not return for data greater than 64 kbyte
Categories
(Core Graveyard :: Embedding: APIs, defect)
Core Graveyard
Embedding: APIs
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
Comment 1•15 years ago
|
||
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
Comment 2•15 years ago
|
||
By "it" I mean that nsEmbedStream should pass the right arguments to NS_NewPipe to make it unlimited.
Comment 3•15 years ago
|
||
This bug can be closed now as it was fixed in 293670.
Comment 4•15 years ago
|
||
Sorry here is the link: bug 293670
Updated•15 years ago
|
Updated•15 years ago
|
Keywords: dev-doc-needed
Comment 5•15 years ago
|
||
This has a mention here now: https://developer.mozilla.org/en/Firefox_3.6_for_developers#Miscellaneous
Keywords: dev-doc-needed → dev-doc-complete
Updated•5 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•