Bug 192415

Summary: Remove unused API in NetworkProcess
Product: WebKit Reporter: Rob Buis <rbuis>
Component: New BugsAssignee: Rob Buis <rbuis>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, ews-watchlist, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews105 for mac-sierra-wk2
none
Patch
none
Patch
none
Patch
none
Patch none

Description Rob Buis 2018-12-05 11:23:49 PST
Remove unused API in NetworkProcess.
Comment 1 Rob Buis 2018-12-05 11:25:51 PST
Created attachment 356627 [details]
Patch
Comment 2 EWS Watchlist 2018-12-05 12:32:37 PST
Comment on attachment 356627 [details]
Patch

Attachment 356627 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/10281139

New failing tests:
http/tests/inspector/network/har/har-page.html
http/tests/inspector/network/resource-request-headers.html
Comment 3 EWS Watchlist 2018-12-05 12:32:38 PST
Created attachment 356641 [details]
Archive of layout-test-results from ews105 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 4 Ryosuke Niwa 2018-12-05 13:43:59 PST
Comment on attachment 356627 [details]
Patch

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

> Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:-529
> -    m_bytesReceived += buffer->size();

Why are you changing this line?
Comment 5 Rob Buis 2018-12-05 23:29:34 PST
(In reply to Ryosuke Niwa from comment #4)
> Comment on attachment 356627 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=356627&action=review
> 
> > Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:-529
> > -    m_bytesReceived += buffer->size();
> 
> Why are you changing this line?

m_bytesReceived keeps being written to, but nobody reads it, so I think it is pointless. It seems m_numBytesReceived has taken its place.

Note that my patch is not final, I'll keep scanning for more API that can be removed, and will put up something for review later this week.
Comment 6 Rob Buis 2018-12-07 05:51:22 PST
Created attachment 356806 [details]
Patch
Comment 7 Rob Buis 2018-12-07 06:08:51 PST
Created attachment 356807 [details]
Patch
Comment 8 Rob Buis 2018-12-07 08:21:56 PST
Created attachment 356812 [details]
Patch
Comment 9 Rob Buis 2018-12-07 10:05:37 PST
Created attachment 356817 [details]
Patch
Comment 10 WebKit Commit Bot 2018-12-07 23:35:55 PST
Comment on attachment 356817 [details]
Patch

Clearing flags on attachment: 356817

Committed r239007: <https://trac.webkit.org/changeset/239007>
Comment 11 WebKit Commit Bot 2018-12-07 23:35:57 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Radar WebKit Bug Importer 2018-12-07 23:36:28 PST
<rdar://problem/46573271>