Should be able to see image content from CacheStorage.add(url) network request Steps to Reproduce: 1. Inspect ServiceWorker on <https://mdn.github.io/sw-test/> 2. Show Network Tab 3. js> caches.open("v1").then((cache) => { cache.add("/sw-test/star-wars-logo.jpg") }); 4. Select Network Table entry for star-wars-logo to show resource preview => Error message screen instead of image Notes: - Network.getResponseBody has no data - There is no CachedResource on the Worker - The data wasn't buffered in NetworkResourceData Lets make the data buffer in NetworkResourceData for workers so we are guaranteed data.
Created attachment 328626 [details] [PATCH] Proposed Fix
Comment on attachment 328626 [details] [PATCH] Proposed Fix r=me
<https://trac.webkit.org/r225708>
<rdar://problem/35944628>