Bug 124343 - Clean up sequence handling in Blob constructor
Summary: Clean up sequence handling in Blob constructor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 03:37 PST by Victor Costan
Modified: 2013-11-14 16:53 PST (History)
3 users (show)

See Also:


Attachments
Patch (4.76 KB, patch)
2013-11-14 04:11 PST, Victor Costan
no flags Details | Formatted Diff | Diff
Patch (4.74 KB, patch)
2013-11-14 15:53 PST, Victor Costan
no flags Details | Formatted Diff | Diff
Patch (4.75 KB, patch)
2013-11-14 16:16 PST, Victor Costan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Costan 2013-11-14 03:37:17 PST
This is a follow-up to Alexey Proskuryakov's feedback on https://bugs.webkit.org/show_bug.cgi?id=124175
Comment 1 Victor Costan 2013-11-14 04:11:28 PST
Created attachment 216917 [details]
Patch
Comment 2 Victor Costan 2013-11-14 05:04:41 PST
The LayoutTest I added actually works without the new exception check. I think it's still valuable because it demonstrates correct behavior, and it uncovered a crashing bug in the Blink patch for the same feature.
Comment 3 Chris Dumez 2013-11-14 11:19:04 PST
Comment on attachment 216917 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=216917&action=review

> Source/WebCore/bindings/js/JSBlobCustom.cpp:124
> +            blobBuilder.append(arrayBufferView);

nit: We might want to arrayBufferView.release() to avoid some ref counting churn.
Comment 4 Victor Costan 2013-11-14 15:53:34 PST
Created attachment 216991 [details]
Patch
Comment 5 Victor Costan 2013-11-14 15:54:11 PST
Thank you for catching that, Chris! Can you please take another look?
Comment 6 Chris Dumez 2013-11-14 16:12:08 PST
(In reply to comment #5)
> Thank you for catching that, Chris! Can you please take another look?

No need for additional review, it was merely a nit.

Just update the Changelog to indicate that it was reviewed by Alexey and reupload with the cq+ flag only.
Comment 7 Victor Costan 2013-11-14 16:16:11 PST
Created attachment 216995 [details]
Patch
Comment 8 WebKit Commit Bot 2013-11-14 16:16:56 PST
Comment on attachment 216995 [details]
Patch

Rejecting attachment 216995 [details] from commit-queue.

costan@gmail.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 9 Victor Costan 2013-11-14 16:18:29 PST
Chris, it seems like I'm not cool enough to use CQ directly.

Sorry, it seems like you and/or Alexey will have to r+ the patch.
Comment 10 Chris Dumez 2013-11-14 16:22:24 PST
(In reply to comment #9)
> Chris, it seems like I'm not cool enough to use CQ directly.
> 
> Sorry, it seems like you and/or Alexey will have to r+ the patch.

Sorry I meant that you should set the cq? flag (not cq+ since you're not a committer). It is OK, I cq+ for you.
Comment 11 Victor Costan 2013-11-14 16:24:16 PST
Sorry to cause you extra work, Chris! I'll know better next time! :)

Thanks!!
Comment 12 WebKit Commit Bot 2013-11-14 16:53:33 PST
Comment on attachment 216995 [details]
Patch

Clearing flags on attachment: 216995

Committed r159323: <http://trac.webkit.org/changeset/159323>
Comment 13 WebKit Commit Bot 2013-11-14 16:53:36 PST
All reviewed patches have been landed.  Closing bug.