RESOLVED FIXED 178369
Add and remove cookie partition accordingly in intermediary redirect requests
https://bugs.webkit.org/show_bug.cgi?id=178369
Summary Add and remove cookie partition accordingly in intermediary redirect requests
John Wilander
Reported 2017-10-16 17:12:14 PDT
We need to add and remove cookie partition through redirects. Otherwise the setting from the data task creation sticks.
Attachments
Patch (63.61 KB, patch)
2017-10-16 17:23 PDT, John Wilander
no flags
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 (1.10 MB, application/zip)
2017-10-16 18:54 PDT, Build Bot
no flags
Patch (66.63 KB, patch)
2017-10-16 19:55 PDT, John Wilander
no flags
Patch for landing (66.78 KB, patch)
2017-10-17 11:13 PDT, John Wilander
no flags
John Wilander
Comment 1 2017-10-16 17:12:33 PDT
John Wilander
Comment 2 2017-10-16 17:23:37 PDT
Build Bot
Comment 3 2017-10-16 17:24:46 PDT
Attachment 323961 [details] did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:202: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Total errors found: 1 in 32 files If any of these errors are false positives, please file a bug against check-webkit-style.
John Wilander
Comment 4 2017-10-16 17:26:25 PDT
The style error is due to deliberate aligning in the comment on rules for when to switch partition.
Build Bot
Comment 5 2017-10-16 18:54:06 PDT
Comment on attachment 323961 [details] Patch Attachment 323961 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4876879 New failing tests: http/tests/resourceLoadStatistics/add-partitioning-to-redirect.html
Build Bot
Comment 6 2017-10-16 18:54:08 PDT
Created attachment 323969 [details] Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
John Wilander
Comment 7 2017-10-16 19:55:40 PDT
John Wilander
Comment 8 2017-10-16 19:57:03 PDT
Test failure on El Cap since cookie partitioning is not supported there. Changed test expectations to only enable the new tests on iOS and macOS High Sierra.
Build Bot
Comment 9 2017-10-16 19:57:55 PDT
Attachment 323976 [details] did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:202: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Total errors found: 1 in 35 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 10 2017-10-17 09:13:39 PDT
Comment on attachment 323976 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=323976&action=review Looks good. Please correct the minor style issues I mentioned before landing. > Source/WebCore/ChangeLog:14 > + by the TestRunner. You should mention that you removed an unimplemented method declaration (for completeness). > Source/WebCore/loader/ResourceLoadObserver.h:-56 > - WEBCORE_EXPORT void setShouldThrottleObserverNotifications(bool); I wish the compiler warned about declarations with no implementations. > LayoutTests/http/tests/resourceLoadStatistics/add-partitioning-to-redirect.html:5 > + <script src="../../resources/js-test-pre.js"></script> Can this just be "js-test.js"? > LayoutTests/http/tests/resourceLoadStatistics/add-partitioning-to-redirect.html:10 > + I think we prefer to do: jsTestIsAsync = true; nowadays. > LayoutTests/http/tests/resourceLoadStatistics/add-partitioning-to-redirect.html:102 > + testRunner.notifyDone(); I think this should be finishJSTest();.
John Wilander
Comment 11 2017-10-17 11:13:29 PDT
Created attachment 324031 [details] Patch for landing
John Wilander
Comment 12 2017-10-17 11:13:53 PDT
Thanks for the review, Brent! All comments addressed.
WebKit Commit Bot
Comment 13 2017-10-17 11:57:25 PDT
Comment on attachment 324031 [details] Patch for landing Clearing flags on attachment: 324031 Committed r223565: <https://trac.webkit.org/changeset/223565>
WebKit Commit Bot
Comment 14 2017-10-17 11:57:27 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.