Bug 217753 - Add tests for caching with service workers for App-Bound Domains
Summary: Add tests for caching with service workers for App-Bound Domains
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kate Cheney
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-15 07:24 PDT by Kate Cheney
Modified: 2020-10-15 12:08 PDT (History)
2 users (show)

See Also:


Attachments
Patch (8.11 KB, patch)
2020-10-15 07:37 PDT, Kate Cheney
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.