WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
184478
Use more r-values in NetworkResourceLoader
https://bugs.webkit.org/show_bug.cgi?id=184478
Summary
Use more r-values in NetworkResourceLoader
youenn fablet
Reported
2018-04-10 17:18:38 PDT
Use more r-values in NetworkResourceLoader
Attachments
Patch
(12.35 KB, patch)
2018-04-10 17:41 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(12.36 KB, patch)
2018-04-10 17:44 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2018-04-10 17:41:10 PDT
Created
attachment 337661
[details]
Patch
youenn fablet
Comment 2
2018-04-10 17:44:14 PDT
Created
attachment 337662
[details]
Patch
Chris Dumez
Comment 3
2018-04-11 09:22:39 PDT
Comment on
attachment 337662
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=337662&action=review
r=me with comment.
> Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:178 > + m_cache->retrieve(request, { m_parameters.webPageID, m_parameters.webFrameID }, [this, loader = WTFMove(loader), request = ResourceRequest { request }](auto entry) mutable {
This was already capturing by value, I do not understand why the explicit "= ResourceRequest { request }" would be needed.
youenn fablet
Comment 4
2018-04-11 09:28:55 PDT
Thanks for the review.
> This was already capturing by value, I do not understand why the explicit "= > ResourceRequest { request }" would be needed.
I had a compilation error if not doing so. I believe request is captured as a "const ResourceRequest" otherwise.
Chris Dumez
Comment 5
2018-04-11 09:30:03 PDT
(In reply to youenn fablet from
comment #4
)
> Thanks for the review. > > > This was already capturing by value, I do not understand why the explicit "= > > ResourceRequest { request }" would be needed. > > I had a compilation error if not doing so. > I believe request is captured as a "const ResourceRequest" otherwise.
And you sure you had the "mutable" at the time? Still seems odd.
WebKit Commit Bot
Comment 6
2018-04-11 09:56:43 PDT
Comment on
attachment 337662
[details]
Patch Clearing flags on attachment: 337662 Committed
r230528
: <
https://trac.webkit.org/changeset/230528
>
WebKit Commit Bot
Comment 7
2018-04-11 09:56:45 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2018-04-11 09:57:24 PDT
<
rdar://problem/39350780
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug