Changeset 232585 in webkit
- Timestamp:
- Jun 7, 2018 10:05:08 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r232584 r232585 1 2018-06-07 Brent Fulgham <bfulgham@apple.com> 2 3 Remove unused debug mode conditions 4 https://bugs.webkit.org/show_bug.cgi?id=186358 5 <rdar://problem/39117121> 6 7 Reviewed by Zalan Bujtas. 8 9 Rebase test expectations after behavior change. 10 11 * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-expected.txt: 12 * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context.html: 13 * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt: 14 * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html: 15 * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt: 16 * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html: 17 * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt: 18 * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html: 19 * http/tests/storageAccess/has-storage-access-from-prevalent-domain-with-recent-user-interaction-expected.txt 20 * http/tests/storageAccess/has-storage-access-from-prevalent-domain-with-recent-user-interaction.html 21 1 22 2018-06-07 Brent Fulgham <bfulgham@apple.com> 2 23 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-expected.txt
r231450 r232585 29 29 Frame: '<!--frame4-->' 30 30 -------- 31 After user interaction, should receive one non-partitioned, firstparty cookie.32 Receivedcookie named 'firstPartyCookie'.33 Did not receivecookie named 'partitionedCookie'.34 Client-side document.cookie: firstPartyCookie=value31 After user interaction, should still only receive one partitioned, third party cookie. 32 Did not receive cookie named 'firstPartyCookie'. 33 Received cookie named 'partitionedCookie'. 34 Client-side document.cookie: partitionedCookie=value -
trunk/LayoutTests/http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context.html
r227943 r232585 77 77 case "#step6": 78 78 // Load localhost under 127.0.0.1 and check that it gets its non-partitioned cookie after user interaction. 79 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should receive one non-partitioned, firstparty cookie.", finishTest);79 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should still only receive one partitioned, third party cookie.", finishTest); 80 80 break; 81 81 } -
trunk/LayoutTests/http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt
r231450 r232585 29 29 Frame: '<!--frame4-->' 30 30 -------- 31 After first user interaction, should only receive un-partitionedcookie.32 Receivedcookie named 'firstPartyCookie'.33 Did not receivecookie named 'thirdPartyCookie'.34 Client-side document.cookie: firstPartyCookie=value31 After first user interaction, should still only receive a partitioned, third-party cookie. 32 Did not receive cookie named 'firstPartyCookie'. 33 Received cookie named 'thirdPartyCookie'. 34 Client-side document.cookie: thirdPartyCookie=value 35 35 36 36 -------- … … 45 45 Frame: '<!--frame6-->' 46 46 -------- 47 After second user interaction, should only receive un-partitionedcookie.48 Receivedcookie named 'firstPartyCookie'.49 Did not receivecookie named 'thirdPartyCookie'.50 Client-side document.cookie: firstPartyCookie=value47 After second user interaction, should still only receive a partitioned, third-party cookie. 48 Did not receive cookie named 'firstPartyCookie'. 49 Received cookie named 'thirdPartyCookie'. 50 Client-side document.cookie: thirdPartyCookie=value -
trunk/LayoutTests/http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html
r229152 r232585 84 84 // http://localhost:8000 now has user interaction, check that un-partitioned cookie is sent for third-party 85 85 document.location.hash = "step6"; 86 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After first user interaction, should only receive un-partitionedcookie.",86 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After first user interaction, should still only receive a partitioned, third-party cookie.", 87 87 setShortCookiePartitioningTimeOutPlusFireShouldPartitionCookiesHandlerAndContinue); 88 88 break; … … 95 95 case "#step7": 96 96 // http://localhost:8000 now has fresh user interaction, check that un-partitioned cookie is sent for third-party 97 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After second user interaction, should only receive un-partitionedcookie.",97 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After second user interaction, should still only receive a partitioned, third-party cookie.", 98 98 finishTest); 99 99 break; -
trunk/LayoutTests/http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt
r231450 r232585 29 29 Frame: '<!--frame4-->' 30 30 -------- 31 After user interaction, should only receive non-partitioned, firstparty cookie.32 Receivedcookie named 'firstPartyCookie'.33 Did not receivecookie named 'thirdPartyCookie'.34 Client-side document.cookie: firstPartyCookie=value31 After user interaction, should still only receive a partitioned, third-party cookie. 32 Did not receive cookie named 'firstPartyCookie'. 33 Received cookie named 'thirdPartyCookie'. 34 Client-side document.cookie: thirdPartyCookie=value -
trunk/LayoutTests/http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html
r229152 r232585 66 66 break; 67 67 case "#step5": 68 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should only receive non-partitioned, firstparty cookie.", finishTest);68 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should still only receive a partitioned, third-party cookie.", finishTest); 69 69 break; 70 70 } -
trunk/LayoutTests/http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt
r231450 r232585 37 37 Frame: '<!--frame5-->' 38 38 -------- 39 After user interaction, should receive non-partitioned cookies set in a first-party context and in a third-party context.40 Receivedcookie named 'firstPartyCookie'.41 Receivedcookie named 'thirdPartyCookie'.42 Did not receivecookie named 'partitionedThirdPartyCookie'.43 Client-side document.cookie: firstPartyCookie=value,thirdPartyCookie=value39 After user interaction, should should still only receive a partitioned, third-party cookie. 40 Did not receive cookie named 'firstPartyCookie'. 41 Did not receive cookie named 'thirdPartyCookie'. 42 Received cookie named 'partitionedThirdPartyCookie'. 43 Client-side document.cookie: partitionedThirdPartyCookie=value -
trunk/LayoutTests/http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html
r227943 r232585 82 82 break; 83 83 case "#step7": 84 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should receive non-partitioned cookies set in a first-party context and in a third-party context.", finishTest);84 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should should still only receive a partitioned, third-party cookie.", finishTest); 85 85 break; 86 86 } -
trunk/LayoutTests/http/tests/storageAccess/has-storage-access-from-prevalent-domain-with-recent-user-interaction-expected.txt
r226235 r232585 4 4 5 5 6 PASS Hasstorage access. document.cookie == , cookies seen server-side == "No cookies"6 PASS No storage access. document.cookie == , cookies seen server-side == "No cookies" 7 7 PASS successfullyParsed is true 8 8 -
trunk/LayoutTests/http/tests/storageAccess/has-storage-access-from-prevalent-domain-with-recent-user-interaction.html
r226016 r232585 32 32 </head> 33 33 <body> 34 <iframe sandbox="allow-storage-access-by-user-activation allow-scripts allow-same-origin allow-modals" id="theIframe" src="http://localhost:8000/storageAccess/resources/has-storage-access-iframe.html#policyShould GrantAccess"></iframe>34 <iframe sandbox="allow-storage-access-by-user-activation allow-scripts allow-same-origin allow-modals" id="theIframe" src="http://localhost:8000/storageAccess/resources/has-storage-access-iframe.html#policyShouldNotGrantAccess"></iframe> 35 35 </body> 36 36 </html> -
trunk/Source/WebKit/ChangeLog
r232576 r232585 1 2018-06-07 Brent Fulgham <bfulgham@apple.com> 2 3 Remove unused debug mode conditions 4 https://bugs.webkit.org/show_bug.cgi?id=186358 5 <rdar://problem/39117121> 6 7 Reviewed by Zalan Bujtas. 8 9 Remove some unused code paths related to ResourceLoadStatistics debug mode. 10 11 * UIProcess/WebResourceLoadStatisticsStore.cpp: 12 (WebKit::WebResourceLoadStatisticsStore::logUserInteraction): 13 (WebKit::WebResourceLoadStatisticsStore::shouldPartitionCookies const): 14 1 15 2018-06-07 Dan Bernstein <mitz@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp
r231684 r232585 557 557 statistics.mostRecentUserInteractionTime = WallTime::now(); 558 558 559 if (m_debugModeEnabled) { 560 if (statistics.isMarkedForCookieBlocking) 561 updateCookiePartitioningForDomains({ primaryDomain }, { }, { }, ShouldClearFirst::No, []() { }); 562 } else 563 if (statistics.isMarkedForCookiePartitioning || statistics.isMarkedForCookieBlocking) 564 updateCookiePartitioningForDomains({ }, { }, { primaryDomain }, ShouldClearFirst::No, []() { }); 559 if (statistics.isMarkedForCookieBlocking) 560 updateCookiePartitioningForDomains({ primaryDomain }, { }, { }, ShouldClearFirst::No, []() { }); 565 561 }); 566 562 } … … 1058 1054 bool WebResourceLoadStatisticsStore::shouldPartitionCookies(const ResourceLoadStatistics& statistic) const 1059 1055 { 1060 if (m_debugModeEnabled) 1061 return statistic.isPrevalentResource && statistic.hadUserInteraction; 1062 1063 return statistic.isPrevalentResource && statistic.hadUserInteraction && WallTime::now() > statistic.mostRecentUserInteractionTime + m_parameters.timeToLiveCookiePartitionFree; 1056 return statistic.isPrevalentResource && statistic.hadUserInteraction; 1064 1057 } 1065 1058
Note: See TracChangeset
for help on using the changeset viewer.