mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Don't attempt to resize Offscreencanvas without a rendering context (#36855)
When the canvas context mode is a placeholder then we shouldn't resize the context. Testing: Includes a new test Fixes: https://github.com/servo/servo/issues/36846 --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
d2afe00f7b
commit
dc0e7587bf
5 changed files with 65 additions and 30 deletions
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -16,6 +16,13 @@
|
|||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"transfer-control-to-offscreencanvas-then-change-dimensions-crash.html": [
|
||||
"bc0c7afd6ab2e1c313bb61ea4a5c68b402105f5d",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
]
|
||||
},
|
||||
"datatransferitem-crash.html": [
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
let canvas = document.createElement("canvas");
|
||||
let offscreenCanvas = canvas.transferControlToOffscreen();
|
||||
offscreenCanvas.height = 0;
|
||||
</script>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue