Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
LayoutTest imported/w3c/web-platform-tests/service-workers/service-wo…
…rker/fetch-event-within-sw.https.html is a flaky failure https://bugs.webkit.org/show_bug.cgi?id=179248 <rdar://problem/35377756> Patch by Youenn Fablet <youenn@apple.com> on 2018-03-01 Reviewed by Chris Dumez. Source/WebKit: WebKitTestRunner is clearing caches for every test but there might still be some on-going cache activity due to a previous test. In that case, the activity might try to open the Caches object at the same time the files are deleted by the clearing task. If the new test is trying to open the same caches, it will also receive the same error, hence the console log message. To fix that issue, we clear the initialization pending callbacks when clearing the caches. This prevents the new test to receive the error since the new test should only start some cache activity after the cache clear task is done. Made refactoring to append the first callback into the list of pending callbacks. * NetworkProcess/cache/CacheStorageEngineCaches.cpp: (WebKit::CacheStorage::Caches::initialize): (WebKit::CacheStorage::Caches::initializeSize): (WebKit::CacheStorage::Caches::clear): * NetworkProcess/cache/CacheStorageEngineCaches.h: LayoutTests: * TestExpectations: Canonical link: https://commits.webkit.org/198938@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
44 additions
and 15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters