Bug 114965

Summary: [Mac] HEAD requests changed to GET after 301, 302, and 303 redirections (http/tests/xmlhttprequest/head-redirection.html)
Product: WebKit Reporter: Jessie Berlin <jberlin>
Component: Page LoadingAssignee: Rob Buis <rbuis>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, ap, beidson, cdumez, commit-queue, ews-watchlist, fred.wang, mnot, rbuis, rniwa, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews104 for mac-sierra-wk2
none
Patch
none
Archive of layout-test-results from ews100 for mac-sierra
none
Archive of layout-test-results from ews115 for mac-sierra
none
Patch
none
Patch
none
Patch none

Jessie Berlin
Reported 2013-04-22 10:12:20 PDT
This was fixed for GTK and EFL in http://trac.webkit.org/changeset/147914 for https://bugs.webkit.org/show_bug.cgi?id=110127, but still needs to be fixed for Mac.
Attachments
Patch (1.83 KB, patch)
2018-11-30 03:24 PST, Rob Buis
no flags
Archive of layout-test-results from ews104 for mac-sierra-wk2 (3.18 MB, application/zip)
2018-11-30 04:35 PST, EWS Watchlist
no flags
Patch (6.87 KB, patch)
2018-11-30 07:31 PST, Rob Buis
no flags
Archive of layout-test-results from ews100 for mac-sierra (2.43 MB, application/zip)
2018-11-30 08:35 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews115 for mac-sierra (2.00 MB, application/zip)
2018-11-30 09:28 PST, EWS Watchlist
no flags
Patch (8.61 KB, patch)
2018-11-30 10:59 PST, Rob Buis
no flags
Patch (9.80 KB, patch)
2018-11-30 14:05 PST, Rob Buis
no flags
Patch (9.84 KB, patch)
2018-12-05 02:24 PST, Rob Buis
no flags
Radar WebKit Bug Importer
Comment 1 2013-04-22 10:12:32 PDT
Alexey Proskuryakov
Comment 2 2013-04-23 13:37:24 PDT
See also: bug 46183.
Rob Buis
Comment 3 2018-11-30 03:24:17 PST
EWS Watchlist
Comment 4 2018-11-30 04:35:55 PST
Comment on attachment 356168 [details] Patch Attachment 356168 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/10213178 New failing tests: imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-worker.html imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method.html http/tests/xmlhttprequest/head-redirection.html
EWS Watchlist
Comment 5 2018-11-30 04:35:56 PST
Created attachment 356169 [details] Archive of layout-test-results from ews104 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Rob Buis
Comment 6 2018-11-30 07:31:56 PST
EWS Watchlist
Comment 7 2018-11-30 08:35:22 PST
Comment on attachment 356175 [details] Patch Attachment 356175 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/10214966 New failing tests: http/tests/xmlhttprequest/head-redirection.html imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method.html imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-worker.html
EWS Watchlist
Comment 8 2018-11-30 08:35:24 PST
Created attachment 356181 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 9 2018-11-30 09:28:04 PST
Comment on attachment 356175 [details] Patch Attachment 356175 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/10215039 New failing tests: http/tests/xmlhttprequest/head-redirection.html
EWS Watchlist
Comment 10 2018-11-30 09:28:05 PST
Created attachment 356186 [details] Archive of layout-test-results from ews115 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-sierra Platform: Mac OS X 10.12.6
Rob Buis
Comment 11 2018-11-30 10:59:00 PST
Rob Buis
Comment 12 2018-11-30 14:05:35 PST
Frédéric Wang (:fredw)
Comment 13 2018-12-04 07:55:23 PST
Comment on attachment 356233 [details] Patch This LGTM but maybe people who were involved in bug 110127 should take a look ;-)
youenn fablet
Comment 14 2018-12-04 08:36:11 PST
This behavior is HTTP generic and not browser specific. I would believe CFNetwork should do the right thing for us. If they cannot, then we can go on with this patch.
Rob Buis
Comment 15 2018-12-04 09:03:26 PST
> I would believe CFNetwork should do the right thing for us. Do you know if there is an existing bug filed against CFNetwork to not change the HEAD requests into GET?
Rob Buis
Comment 16 2018-12-04 09:09:19 PST
>> I would believe CFNetwork should do the right thing for us. >Do you know if there is an existing bug filed against CFNetwork to not change the HEAD requests into GET? I realize you probably can't comment. An alternative could be to go with the patch but add a "FIXME: remove when CFNetwork changes/fixes behavior". WDYT?
Frédéric Wang (:fredw)
Comment 17 2018-12-04 09:18:16 PST
(In reply to Rob Buis from comment #16) > >> I would believe CFNetwork should do the right thing for us. > > >Do you know if there is an existing bug filed against CFNetwork to not change the HEAD requests into GET? > > I realize you probably can't comment. An alternative could be to go with the > patch but add a "FIXME: remove when CFNetwork changes/fixes behavior". WDYT? I guess even FIXME(rdar://problem/13706454)
youenn fablet
Comment 18 2018-12-04 10:36:07 PST
(In reply to Frédéric Wang (:fredw) from comment #17) > (In reply to Rob Buis from comment #16) > > >> I would believe CFNetwork should do the right thing for us. > > > > >Do you know if there is an existing bug filed against CFNetwork to not change the HEAD requests into GET? > > > > I realize you probably can't comment. An alternative could be to go with the > > patch but add a "FIXME: remove when CFNetwork changes/fixes behavior". WDYT? > > I guess even FIXME(rdar://problem/13706454) Let's do that for now.
Rob Buis
Comment 19 2018-12-05 02:24:59 PST
Rob Buis
Comment 20 2018-12-05 02:33:07 PST
Comment on attachment 356593 [details] Patch I added the FIXME.
WebKit Commit Bot
Comment 21 2018-12-05 03:11:05 PST
Comment on attachment 356593 [details] Patch Clearing flags on attachment: 356593 Committed r238891: <https://trac.webkit.org/changeset/238891>
WebKit Commit Bot
Comment 22 2018-12-05 03:11:07 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.