Closed
Bug 744907
Opened 13 years ago
Closed 12 years ago
Remove BlobBuilder
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
Details
(Keywords: dev-doc-needed)
Attachments
(1 file, 2 obsolete files)
36.55 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
We decided to go with a constructor for Blob instead.
Comment 1•13 years ago
|
||
ETA on this? (I see the constructor is supported now.)
Updated•13 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → Ms2ger
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #621439 -
Flags: review?(jonas)
Do we need the BlobBuilder "wrapper class" in the XHR code? Can't we use BlobSet directly instead? Seems like a simpler mental model to have fewer wrapper classes.
However, more importantly, I think we need to warn about this being deprecated for at least a release or two before we remove it. This was an API which gained attention pretty quickly, so I'm worried there are sites using it out there.
Comment 4•13 years ago
|
||
We shouldn't remove MozBlobBuilder right now because of bug 752402.
Depends on: 752402
I forgot that we already warn about MozBlobBuilder usage. So I think we should just sit tight for a release or two before we remove it.
Comment on attachment 621439 [details] [diff] [review]
Patch v1
Removing review request while we're waiting for a couple of release trains to pass (and possibly for google to ship the constructor)
Attachment #621439 -
Flags: review?(jonas)
Comment 7•13 years ago
|
||
Comment on attachment 621439 [details] [diff] [review]
Patch v1
> --- a/content/base/src/nsDOMBlobBuilder.cpp
> +++ b/content/base/src/nsDOMBlobBuilder.cpp
> --- a/content/base/src/nsDOMBlobBuilder.h
> +++ b/content/base/src/nsDOMBlobBuilder.h
Let's rename these files to nsDOMMultipartFile.cpp/.h (after a few releases).
Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 621439 [details] [diff] [review]
Patch v1
Review of attachment 621439 [details] [diff] [review]:
-----------------------------------------------------------------
How about after the next merge?
Attachment #621439 -
Flags: review?(jonas)
Comment on attachment 621439 [details] [diff] [review]
Patch v1
Review of attachment 621439 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with that fixed.
::: content/base/src/nsXMLHttpRequest.h
@@ +655,5 @@
> + nsresult AppendVoidPtr(const void* aData, PRUint32 aLength)
> + { return mBlobSet.AppendVoidPtr(aData, aLength); }
> +
> + already_AddRefed<nsIDOMBlob>
> + GetBlobInternal(const nsACString& aContentType)
Just move this function to BlobSet and get rid of the BlobBuilder class.
Attachment #621439 -
Flags: review?(jonas) → review+
Next merge happened, so I think this can be checked in.
Assignee | ||
Comment 11•12 years ago
|
||
This bitrotted quite a bit; would you mind doing a quick pass over it again?
Attachment #621439 -
Attachment is obsolete: true
Attachment #662126 -
Flags: review?(jonas)
Assignee | ||
Comment 12•12 years ago
|
||
With review comment addressed.
Attachment #662126 -
Attachment is obsolete: true
Attachment #662126 -
Flags: review?(jonas)
Attachment #662143 -
Flags: review?(jonas)
Comment on attachment 662143 [details] [diff] [review]
Patch v2
Review of attachment 662143 [details] [diff] [review]:
-----------------------------------------------------------------
Yay! Thanks!
Attachment #662143 -
Flags: review?(jonas) → review+
Comment 14•12 years ago
|
||
>@@ -2262,19 +2258,18 @@ nsXMLHttpRequest::OnStopRequest(nsIReque
> if (mDOMFile) {
> mResponseBlob = mDOMFile;
> mDOMFile = nullptr;
> } else {
> // Smaller files may be written in cache map instead of separate files.
Conflicts with bug 791001 :(
Comment 15•12 years ago
|
||
>--- a/content/base/src/nsDOMBlobBuilder.cpp
>+++ b/content/base/src/nsDOMBlobBuilder.cpp
Isn't the file renamed?
Assignee | ||
Comment 16•12 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #15)
> >--- a/content/base/src/nsDOMBlobBuilder.cpp
> >+++ b/content/base/src/nsDOMBlobBuilder.cpp
> Isn't the file renamed?
I'd be happy to, but couldn't really think of a good name for the two classes left in the file.
Assignee | ||
Comment 17•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•