WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
113208
[Chromium] Add WebURLRequest::setIgnoreResponseCookies().
https://bugs.webkit.org/show_bug.cgi?id=113208
Summary
[Chromium] Add WebURLRequest::setIgnoreResponseCookies().
Philippe Liard
Reported
2013-03-25 07:58:10 PDT
This method will be used in Chromium to send cookies in the favicon request but without processing them in the response to avoid side effects. See this bug on the Chromium side:
https://code.google.com/p/chromium/issues/detail?id=223412
.
Attachments
Patch
(6.10 KB, patch)
2013-03-25 08:04 PDT
,
Philippe Liard
levin
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Philippe Liard
Comment 1
2013-03-25 08:04:53 PDT
Created
attachment 194860
[details]
Patch
WebKit Review Bot
Comment 2
2013-03-25 08:08:49 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Darin Fisher (:fishd, Google)
Comment 3
2013-03-25 08:35:59 PDT
Are you sure this won't lead to a bunch of "infinite" redirects? When a cookie is not set, or needs to be updates, sites will commonly issues a redirect with a set-cookie header and a location back to the original URL. If the cookie is not sent in the subsequent request, the server will issue the redirect again. This repeats until the browser decides that it has followed too many redirects. This sounds costly, especially if it were to happen a lot.
David Levin
Comment 4
2013-03-25 08:59:07 PDT
I would recommend against modifying ResourceRequestBase unless you plan to modify all ports to support it. Consider doing it like WebURLRequest::setAllowStoredCredentials does instead where it doesn't need to touch ResourceRequestBase. Also, Darin makes a fair point which I didn't consider...Maybe this is harder than I first thought. :(
Philippe Liard
Comment 5
2013-03-25 09:26:45 PDT
Good point Darin. I wasn't aware of this mechanism. If I understand correctly, this means that we are already broken in that sense since we completely disable cookies for the favicon request (since
r181483
), right?
Philippe Liard
Comment 6
2013-03-25 09:54:00 PDT
Would it make sense to detect a redirect response to the original URL (redirect loop) and fallback to enabling cookies in that case to break the loop (only for favicon requests)? Or does this sound too complicated in terms of expected behavior?
Darin Fisher (:fishd, Google)
Comment 7
2013-03-25 09:59:55 PDT
(In reply to
comment #5
)
> Good point Darin. I wasn't aware of this mechanism. If I understand correctly, this means that we are already broken in that sense since we completely disable cookies for the favicon request (since
r181483
), right?
Yeah, I don't think that was the correct solution either, but I could be wrong. There seems to be a variety of complications. Some of these might just stem from how our (Chromium's) favicon loading is already a bit different than normal resource loading? Maybe making it less different would be an alternative / better way to fix the set of issues? Given the behavior of other browsers as detailed in
https://code.google.com/p/chromium/issues/detail?id=114082
, perhaps there are other solutions?
Philippe Liard
Comment 8
2013-03-25 10:05:53 PDT
Yes, I will revisit the list of solutions and will continue the discussion on the crbug. Thanks.
David Levin
Comment 9
2013-03-25 10:22:12 PDT
Comment on
attachment 194860
[details]
Patch r- for now per discussion in bug.
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