The default bug view has changed. See this FAQ.

XMLHttpRequest should have some way to get and remove partial .textContent

NEW
Unassigned

Status

()

Core
DOM
8 years ago
4 years ago

People

(Reporter: smaug, Unassigned)

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
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
(Reporter)

Comment 1

8 years ago
I need to send this to webapps wg
As in bug 687087?
(Assignee)

Updated

4 years ago
Component: DOM: Mozilla Extensions → DOM
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.