Last Comment Bug 496533 - XMLHttpRequest should have some way to get and remove partial .textContent
: XMLHttpRequest should have some way to get and remove partial .textContent
Status: NEW
Product: Core
Classification: Components
Component: DOM (show other bugs)
: Trunk
: x86 All
: -- normal with 2 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Andrew Overholt [:overholt]
Depends on:
  Show dependency treegraph
Reported: 2009-06-05 01:58 PDT by Olli Pettay [:smaug]
Modified: 2013-04-04 13:53 PDT (History)
6 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description Olli Pettay [:smaug] 2009-06-05 01:58:53 PDT
It would be useful if there was some way to get and remove partial .textContent data. This way XHR wouldn't need to keep all the data in memory and
there was no need to copy so much data from XHR to JS.

Maybe something like this:
interface nsIXMLHttpRequest
  DOMString getTextContent(unsigned long long offset, unsigned long long length,
                           boolean remove /*if true, the data is removed from the internal buffer*/);
  readonly attribute unsigned long long textContentLength;

Maybe something similar for .responseBody.
Comment 1 Olli Pettay [:smaug] 2009-06-05 03:48:20 PDT
I need to send this to webapps wg
Comment 2 :Ms2ger (⌚ UTC+1/+2) 2011-10-14 09:32:30 PDT
As in bug 687087?

Note You need to log in before you can comment on or make changes to this bug.