aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcanvaselement.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-10-01 13:11:50 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-10-04 09:22:21 -0400
commit81a67aed9e0cc866f4689e8d7a5541198d75e445 (patch)
tree65c5496febb57bab609aa1c62a771ae06a9ee49b /components/script/dom/htmlcanvaselement.rs
parentea4600828861010da859399d3d432e2252619c2d (diff)
downloadservo-81a67aed9e0cc866f4689e8d7a5541198d75e445.tar.gz
servo-81a67aed9e0cc866f4689e8d7a5541198d75e445.zip
Double key image cache by requesting origin, and store CORS status with cached images.
Diffstat (limited to 'components/script/dom/htmlcanvaselement.rs')
-rw-r--r--components/script/dom/htmlcanvaselement.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/htmlcanvaselement.rs b/components/script/dom/htmlcanvaselement.rs
index 1c07a88cc1c..eb62d920ca9 100644
--- a/components/script/dom/htmlcanvaselement.rs
+++ b/components/script/dom/htmlcanvaselement.rs
@@ -448,6 +448,7 @@ pub mod utils {
let image_cache = window.image_cache();
let response = image_cache.find_image_or_metadata(
url.into(),
+ window.origin().immutable().clone(),
UsePlaceholder::No,
CanRequestImages::No,
);