Changeset 265035 in webkit
- Timestamp:
- Jul 29, 2020 1:45:12 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r265032 r265035 1 2020-07-29 Youenn Fablet <youenn@apple.com> 2 3 TestWebKitAPI.WebKit.QuotaDelegate flaky times out 4 https://bugs.webkit.org/show_bug.cgi?id=214842 5 6 Reviewed by Geoffrey Garen. 7 8 Add some release logging. 9 10 * UIProcess/Network/NetworkProcessProxy.cpp: 11 (WebKit::NetworkProcessProxy::requestStorageSpace): 12 1 13 2020-07-29 Carlos Garcia Campos <cgarcia@igalia.com> 2 14 -
trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp
r264356 r265035 1371 1371 void NetworkProcessProxy::requestStorageSpace(PAL::SessionID sessionID, const WebCore::ClientOrigin& origin, uint64_t currentQuota, uint64_t currentSize, uint64_t spaceRequired, CompletionHandler<void(Optional<uint64_t> quota)>&& completionHandler) 1372 1372 { 1373 RELEASE_LOG(Storage, "%p - NetworkProcessProxy::requestStorageSpace", this); 1373 1374 auto* store = websiteDataStoreFromSessionID(sessionID); 1374 1375 … … 1390 1391 1391 1392 WebPageProxy::forMostVisibleWebPageIfAny(sessionID, origin.topOrigin, [completionHandler = WTFMove(completionHandler), origin, currentQuota, currentSize, spaceRequired](auto* page) mutable { 1393 RELEASE_LOG(Storage, "NetworkProcessProxy::requestStorageSpace trying to get a visible page: %d", !!page); 1392 1394 if (!page) { 1393 1395 completionHandler({ }); -
trunk/Tools/ChangeLog
r265025 r265035 1 2020-07-29 Youenn Fablet <youenn@apple.com> 2 3 TestWebKitAPI.WebKit.QuotaDelegate flaky times out 4 https://bugs.webkit.org/show_bug.cgi?id=214842 5 6 Reviewed by Geoffrey Garen. 7 8 * TestWebKitAPI/Tests/WebKitCocoa/StorageQuota.mm: 9 In case the page is not visible, quota increase delegate will be denied. 10 Delay the cache storage hence the quota increase until the page is visible. 11 1 12 2020-07-28 Dean Jackson <dino@apple.com> 2 13 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/StorageQuota.mm
r264837 r265035 153 153 } 154 154 } 155 doTest(); 155 156 window.onload = () => { 157 if (document.visibilityState === 'visible') 158 doTest(); 159 else { 160 document.addEventListener("visibilitychange", function() { 161 if (document.visibilityState === 'visible') 162 doTest(); 163 }); 164 } 165 } 156 166 157 167 function doTestAgain() … … 230 240 setVisible(webView1.get()); 231 241 232 NSLog(@"QuotaDelegate 1");233 234 242 receivedQuotaDelegateCalled = false; 235 243 [webView1 loadRequest:server.request()]; 236 244 Util::run(&receivedQuotaDelegateCalled); 237 238 NSLog(@"QuotaDelegate 2");239 245 240 246 auto webView2 = adoptNS([[TestWKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:configuration.get() addToWindow:YES]); … … 248 254 Util::run(&receivedMessage); 249 255 250 NSLog(@"QuotaDelegate 3");251 252 256 EXPECT_FALSE(delegate2.get().quotaDelegateCalled); 253 257 [delegate1 grantQuota]; … … 257 261 Util::run(&receivedMessage); 258 262 259 NSLog(@"QuotaDelegate 4");260 261 263 while (!delegate2.get().quotaDelegateCalled) 262 264 TestWebKitAPI::Util::sleep(0.1); 263 264 NSLog(@"QuotaDelegate 5");265 265 266 266 [delegate2 denyQuota];
Note: See TracChangeset
for help on using the changeset viewer.