Resource Load Statistics: Block cookies for prevalent resources without user interaction
[WebKit-https.git] / LayoutTests / http / tests / resourceLoadStatistics / partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html
index 3faf8be..01b3708 100644 (file)
     if (document.location.hash === "" && window.testRunner && window.internals) {
         setEnableFeature(true);
 
+        // Set localhost as prevalent and with non-recent user interaction to put it in the partitioning category.
         testRunner.setStatisticsPrevalentResource("http://localhost", true);
         if (!testRunner.isStatisticsPrevalentResource("http://localhost"))
             testFailed("Host did not get set as prevalent resource.");
+        testRunner.setStatisticsHasHadNonRecentUserInteraction("http://localhost");
 
         testRunner.statisticsUpdateCookiePartitioning();