question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Chromium] Images cache partitioning doesn't work while a 3p renderer is alive

See original GitHub issue

Looks like images are cached in the renderer and don’t know anything about NIK areas. If we navigate the renderer away (for ex. to example.com to effectively destroy/clear cache) then the image is not found in the cache and refetched properly.

See https://privacytests.org/ image cache test.

Need to figure out how/if blink caches some simple blobs and make sure it supports NetworkIsolationKey-based partitioning there.

Blink indeed have MemoryCache, but it doesn’t support partitioning out of the box. There is an open issue to implement this, but no signs of activity https://bugs.chromium.org/p/chromium/issues/detail?id=1127971.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
goodovcommented, Nov 24, 2021

@goodov what’s the command line QA needs to use?

--enable-features=PartitionBlinkMemoryCache

1reaction
goodovcommented, Nov 16, 2021

For QA: nothing should be changed visually, but internal blink memory cache should behave differently for 3p frames. Can we please check the usual browser behavior regarding 3p frames and any frames in general hasn’t changed and everything works as it should? The test plan will look like this:

  1. Enable PartitionBlinkMemoryCache feature via command line.
  2. Perform various tests from https://dev-pages.brave.software/storage/index.html
  3. Perform an SSO authorization, make sure it works without any issues.

We’d like to have a QA approve for a general sanity so we can enable this in nightly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome doesn't cache images/js/css - Stack Overflow
I have set all cache control headers, etc. but chrome never refreshes this images when navigation through anchor. IE and FF works as...
Read more >
Question about Chrome image caching - Google Groups
I have a question about how chrome caches images. ... So I suspect the lag is while loading image from HDD and pushing...
Read more >
We should only cache the last decoded frame of gif animations
Caching is not as costly with impl-side painting and discardable memory but it's not clear if that justifies a change in gif animation...
Read more >
chrome/browser/flag_descriptions.cc - chromium/src - Git at Google
"Enables closed tab cache to instantaneously restore recently closed tabs. " "NOTE: This feature is higly experimental and will lead to various "....
Read more >
Chrome 90 Bug Causes Incorrect Download | Antradar Blog
A cache partitioning bug likely caused Chrome 90 and other Chromium ... Normally, when a web page displays an image, or an embedded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found