RESOLVED FIXED 159413
Remove ClientCredentialPolicy cross-origin option from ResourceLoaderOptions
https://bugs.webkit.org/show_bug.cgi?id=159413
Summary Remove ClientCredentialPolicy cross-origin option from ResourceLoaderOptions
youenn fablet
Reported 2016-07-05 01:04:21 PDT
It is probably redundant with FetchOptions::Credentials
Attachments
Patch (38.02 KB, patch)
2016-07-05 04:53 PDT, youenn fablet
no flags
Archive of layout-test-results from ews102 for mac-yosemite (710.24 KB, application/zip)
2016-07-05 05:44 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (855.63 KB, application/zip)
2016-07-05 05:46 PDT, Build Bot
no flags
Archive of layout-test-results from ews114 for mac-yosemite (1.34 MB, application/zip)
2016-07-05 05:52 PDT, Build Bot
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (573.18 KB, application/zip)
2016-07-05 05:54 PDT, Build Bot
no flags
Rebasing test (40.38 KB, patch)
2016-07-05 06:35 PDT, youenn fablet
no flags
Removing WK1 expectation (42.42 KB, patch)
2016-07-05 07:15 PDT, youenn fablet
no flags
Rebasing (42.48 KB, patch)
2016-07-21 01:11 PDT, youenn fablet
no flags
Archive of layout-test-results from ews106 for mac-yosemite-wk2 (912.79 KB, application/zip)
2016-07-21 02:07 PDT, Build Bot
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (577.07 KB, application/zip)
2016-07-21 02:14 PDT, Build Bot
no flags
Fixed test (41.35 KB, patch)
2016-07-21 03:02 PDT, youenn fablet
no flags
Patch for landing (38.98 KB, patch)
2016-07-26 08:54 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2016-07-05 04:53:28 PDT
youenn fablet
Comment 2 2016-07-05 04:56:08 PDT
Some options in Mac-specific AV loader code seems a bit odd: stored credentials are not allowed, credential mode is omit but credential request is ask-if-same-origin (see Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp and Source/WebCore/platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm). I changed that to not-ask-for-any-credentials.
Build Bot
Comment 3 2016-07-05 05:44:16 PDT
Comment on attachment 282769 [details] Patch Attachment 282769 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1629716 New failing tests: imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic.html
Build Bot
Comment 4 2016-07-05 05:44:19 PDT
Created attachment 282773 [details] Archive of layout-test-results from ews102 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 5 2016-07-05 05:46:54 PDT
Comment on attachment 282769 [details] Patch Attachment 282769 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1629721 New failing tests: imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic.html
Build Bot
Comment 6 2016-07-05 05:46:57 PDT
Created attachment 282774 [details] Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 7 2016-07-05 05:52:53 PDT
Comment on attachment 282769 [details] Patch Attachment 282769 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/1629731 New failing tests: imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic.html
Build Bot
Comment 8 2016-07-05 05:52:56 PDT
Created attachment 282775 [details] Archive of layout-test-results from ews114 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 9 2016-07-05 05:54:18 PDT
Comment on attachment 282769 [details] Patch Attachment 282769 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/1629733 New failing tests: imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic.html
Build Bot
Comment 10 2016-07-05 05:54:21 PDT
Created attachment 282776 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.4
youenn fablet
Comment 11 2016-07-05 06:35:21 PDT
Created attachment 282782 [details] Rebasing test
youenn fablet
Comment 12 2016-07-05 07:15:58 PDT
Created attachment 282784 [details] Removing WK1 expectation
youenn fablet
Comment 13 2016-07-21 01:11:55 PDT
Created attachment 284196 [details] Rebasing
Build Bot
Comment 14 2016-07-21 02:07:26 PDT
Comment on attachment 284196 [details] Rebasing Attachment 284196 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1722575 New failing tests: imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic.html
Build Bot
Comment 15 2016-07-21 02:07:29 PDT
Created attachment 284198 [details] Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 16 2016-07-21 02:14:46 PDT
Comment on attachment 284196 [details] Rebasing Attachment 284196 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/1722581 New failing tests: imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic.html
Build Bot
Comment 17 2016-07-21 02:14:49 PDT
Created attachment 284199 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.5
youenn fablet
Comment 18 2016-07-21 03:02:17 PDT
Created attachment 284202 [details] Fixed test
Alex Christensen
Comment 19 2016-07-25 11:42:30 PDT
Comment on attachment 284202 [details] Fixed test View in context: https://bugs.webkit.org/attachment.cgi?id=284202&action=review > Source/WebCore/ChangeLog:14 > + Since DocumentThreadableLoader is already computing whether the request is cross-origin, it can also computes computes -> compute > Source/WebCore/loader/ResourceLoaderOptions.h:139 > + ClientCredentialPolicy clientCredentialPolicy { ClientCredentialPolicy::CannotAskClientForCredentials }; This adds 6 bits to the size of ResourceLoaderOptions unnecessarily. Can we still keep it small? > LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt:-1 > -http://localhost:8800/fetch/api/resources/authentication.py?realm=test - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet I don't think this part applies to trunk any more.
youenn fablet
Comment 20 2016-07-26 08:54:33 PDT
Created attachment 284594 [details] Patch for landing
youenn fablet
Comment 21 2016-07-26 08:56:48 PDT
Thanks for the review. > > Source/WebCore/ChangeLog:14 > > + Since DocumentThreadableLoader is already computing whether the request is cross-origin, it can also computes > > computes -> compute OK > > Source/WebCore/loader/ResourceLoaderOptions.h:139 > > + ClientCredentialPolicy clientCredentialPolicy { ClientCredentialPolicy::CannotAskClientForCredentials }; > > This adds 6 bits to the size of ResourceLoaderOptions unnecessarily. Can we > still keep it small? I removed uint8_t for the enum class. Do you know why other enumerations are using it? > > LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt:-1 > > -http://localhost:8800/fetch/api/resources/authentication.py?realm=test - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet > > I don't think this part applies to trunk any more. Indeed :)
WebKit Commit Bot
Comment 22 2016-07-26 09:24:20 PDT
Comment on attachment 284594 [details] Patch for landing Clearing flags on attachment: 284594 Committed r203720: <http://trac.webkit.org/changeset/203720>
WebKit Commit Bot
Comment 23 2016-07-26 09:24:26 PDT
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.