WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 175524
Drop non-const getter for CachedResource::resourceRequest()
https://bugs.webkit.org/show_bug.cgi?id=175524
Summary
Drop non-const getter for CachedResource::resourceRequest()
Chris Dumez
Reported
2017-08-13 10:22:04 PDT
Drop non-const getter for CachedResource::resourceRequest(). It would be unsafe to modify the request of a CachedResource after it has been cached. Exposing such a getter is therefore a footgun.
Attachments
Patch
(11.20 KB, patch)
2017-08-13 10:23 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(11.43 KB, patch)
2017-08-13 13:26 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-08-13 10:23:48 PDT
Created
attachment 318011
[details]
Patch
youenn fablet
Comment 2
2017-08-13 12:49:28 PDT
Comment on
attachment 318011
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=318011&action=review
> Source/WebCore/loader/LinkLoader.cpp:227 > CachedResourceRequest linkRequest(WTFMove(resourceRequest), CachedResourceLoader::defaultCachedResourceOptions(), CachedResource::defaultPriorityForResourceType(type.value()));
Could probably be rewritten to CachedResourceRequest linkRequest(document.completeURL(href),...) or CachedResourceRequest linkRequest(ResourceRequest(document.completeURL(href),...) if we do not like creating implicitly requests from urls.
Chris Dumez
Comment 3
2017-08-13 13:26:16 PDT
Created
attachment 318015
[details]
Patch
WebKit Commit Bot
Comment 4
2017-08-13 14:07:59 PDT
Comment on
attachment 318015
[details]
Patch Clearing flags on attachment: 318015 Committed
r220632
: <
http://trac.webkit.org/changeset/220632
>
WebKit Commit Bot
Comment 5
2017-08-13 14:08:01 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2017-08-13 14:08:34 PDT
<
rdar://problem/33868034
>
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