Bug 217753

Summary: Add tests for caching with service workers for App-Bound Domains
Product: WebKit Reporter: Kate Cheney <katherine_cheney>
Component: WebKit Misc.Assignee: Kate Cheney <katherine_cheney>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

Description Kate Cheney 2020-10-15 07:24:45 PDT
We should add testing for using caching for Window and ServiceWorkerGlobalScope
Comment 1 Radar WebKit Bug Importer 2020-10-15 07:25:12 PDT
<rdar://problem/70334838>
Comment 2 Kate Cheney 2020-10-15 07:37:59 PDT
Created attachment 411440 [details]
Patch
Comment 3 youenn fablet 2020-10-15 07:42:33 PDT
Comment on attachment 411440 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=411440&action=review

> Tools/TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm:1050
> +        { "text/html", serviceWorkerGlobalScopeCacheStorageBytes }

This is probably not what you want here.
You probably want to register a service worker and within this service worker, verify that self.caches is present and functional.