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]
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-05 01:58 PDT by Olli Pettay [:smaug] (pto-ish for couple of days)
Modified: 2013-04-04 13:53 PDT (History)
6 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description User image Olli Pettay [:smaug] (pto-ish for couple of days) 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.
See http://www.bluishcoder.co.nz/2009/06/reading-ogg-files-with-javascript.html
Comment 1 User image Olli Pettay [:smaug] (pto-ish for couple of days) 2009-06-05 03:48:20 PDT
I need to send this to webapps wg
Comment 2 User image :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.