Right now the list of available images keys on the tuple (url, CORS settings attribute, maybe(Origin)). I think since referrerpolicy has been added to the list of relevant mutations (#5434), that the list of available images should also key on it.
We're accidentally already testing this as well, in an img lazyload test. https://github.com/web-platform-tests/wpt/blob/master/html/semantics/embedded-content/the-img-element/image-loading-lazy-referrerpolicy-change.sub.html shows that we're asserting that a deferred image is fetched with the correct referrer policy when its load is resumed, as opposed to being pulled from the list of available images / memory cache.
@annevk @zcorpan WDYT? If this seems reasonable I'll make a PR
Right now the list of available images keys on the tuple (url, CORS settings attribute, maybe(Origin)). I think since
referrerpolicyhas been added to the list of relevant mutations (#5434), that the list of available images should also key on it.We're accidentally already testing this as well, in an img lazyload test. https://github.com/web-platform-tests/wpt/blob/master/html/semantics/embedded-content/the-img-element/image-loading-lazy-referrerpolicy-change.sub.html shows that we're asserting that a deferred image is fetched with the correct referrer policy when its load is resumed, as opposed to being pulled from the list of available images / memory cache.
@annevk @zcorpan WDYT? If this seems reasonable I'll make a PR