mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Don't slice a sliced blob (#36866)
When slicing a blob that is already sliced we should reference it's parent's data instead of creating a subview into the sliced blob. This keeps the blob ancestry chain small and reduces the number of blobs that we have to resolve. Testing: Includes a new crashtest Fixes: https://github.com/servo/servo/issues/36843 [try run](https://github.com/simonwuelker/servo/actions/runs/14844873660) --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
3b806ca424
commit
54c2818974
7 changed files with 76 additions and 69 deletions
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -60,6 +60,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"slice-blob-twice-crash.html": [
|
||||
"94227dcc74d80dae19b39df025708ffc24ee78c5",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"test-wait-crash.html": [
|
||||
"2419da6af0c278a17b9ff974d4418f9e386ef3e0",
|
||||
[
|
||||
|
|
5
tests/wpt/mozilla/tests/mozilla/slice-blob-twice-crash.html
vendored
Normal file
5
tests/wpt/mozilla/tests/mozilla/slice-blob-twice-crash.html
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
(new Blob()).slice().slice().size;
|
||||
</script>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue