mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Implement proper origin checks for WebGL textures (fixes #21522)
This commit is contained in:
parent
e745050f3a
commit
8c100b23b1
13 changed files with 129 additions and 99 deletions
|
@ -247,8 +247,7 @@ impl CanvasRenderingContext2D {
|
|||
canvas.origin_is_clean()
|
||||
}
|
||||
CanvasImageSource::HTMLImageElement(image) => {
|
||||
let image_origin = image.get_origin().expect("Image's origin is missing");
|
||||
image_origin.same_origin(GlobalScope::entry().origin())
|
||||
image.same_origin(GlobalScope::entry().origin())
|
||||
}
|
||||
CanvasImageSource::CSSStyleValue(_) => true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue