Bug 150829 - Clean up NETWORK_SESSION code after r191848
Summary: Clean up NETWORK_SESSION code after r191848
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords:
Depends on:
Blocks: 150834
  Show dependency treegraph
 
Reported: 2015-11-02 17:50 PST by Alex Christensen
Modified: 2015-11-03 12:39 PST (History)
1 user (show)

See Also:


Attachments
Patch (3.50 KB, patch)
2015-11-02 17:51 PST, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Christensen 2015-11-02 17:50:48 PST
Clean up NETWORK_SESSION code after r191848
Comment 1 Alex Christensen 2015-11-02 17:51:03 PST
Created attachment 264652 [details]
Patch
Comment 2 Alex Christensen 2015-11-02 17:51:45 PST
Fixed Darin's comment in https://bugs.webkit.org/show_bug.cgi?id=150742
Comment 3 Darin Adler 2015-11-02 22:08:09 PST
Comment on attachment 264652 [details]
Patch

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

> Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp:474
> -    sharedDidReceiveBuffer(WTF::move(buffer), buffer->size());
> +    auto size = buffer->size();
> +    sharedDidReceiveBuffer(WTF::move(buffer), size);

This is not clean up; it’s fixing a potentially serious bug.
Comment 4 WebKit Commit Bot 2015-11-03 01:17:45 PST
Comment on attachment 264652 [details]
Patch

Clearing flags on attachment: 264652

Committed r191942: <http://trac.webkit.org/changeset/191942>
Comment 5 WebKit Commit Bot 2015-11-03 01:17:48 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Alex Christensen 2015-11-03 12:39:46 PST
(In reply to comment #3)
> Comment on attachment 264652 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=264652&action=review
> 
> > Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp:474
> > -    sharedDidReceiveBuffer(WTF::move(buffer), buffer->size());
> > +    auto size = buffer->size();
> > +    sharedDidReceiveBuffer(WTF::move(buffer), size);
> 
> This is not clean up; it’s fixing a potentially serious bug.
I agree.  I think this should've caused crashes, but it didn't.  I also think we should remove the size parameter because it's not really used.