net: Associate every ImageCache with a WebView#40376
Merged
mrobinson merged 1 commit intoservo:mainfrom Nov 4, 2025
Merged
Conversation
|
🔨 Triggering try run (#19044622074) for Linux (WPT) |
mrobinson
commented
Nov 3, 2025
| @@ -489,7 +488,7 @@ pub struct Constellation<STF, SWF> { | |||
| privileged_urls: Vec<ServoUrl>, | |||
|
|
|||
| /// The image cache for the single-process mode | |||
Member
Author
There was a problem hiding this comment.
This rustdoc needs to be updated.
components/shared/net/image_cache.rs
Outdated
|
|
||
| /// An [`ImageCache`] manages fetching and decoding images for a single `Pipeline` ( | ||
| /// (its `Document` and all of its associated `Worker`s). | ||
| /// all of its workers. It is |
Member
Author
There was a problem hiding this comment.
This line should be removed.
|
Test results for linux-wpt from try job (#19044622074): Flaky unexpected result (19)
Stable unexpected results that are known to be intermittent (24)
|
|
✨ Try run (#19044622074) succeeded. |
Every `ImageCache` should be assigned a `Pipeline` and a `WebView`, so that it knows what WebRender instance to create image keys in. This change accomplishes that by splitting the `ImageCache` trait into `ImageCache` and `ImageCacheFactory`. There should only be one `ImageCacheFactory` per process. Signed-off-by: Martin Robinson <[email protected]>
7933618 to
948dfb6
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every
ImageCacheshould be assigned aPipelineand aWebView, sothat it knows what WebRender instance to create image keys in. This
change accomplishes that by splitting the
ImageCachetrait intoImageCacheandImageCacheFactory. There should only be oneImageCacheFactoryper process.Testing: This should not change observable behavior and is thus covered by
existing tests.
Fixes: This is part of #40261.