mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Prevent crash when encoding into detached buffer
This handles the case where data is encoded into a detached buffer.
This commit is contained in:
committed by
Tim Flynn
parent
8ec420bc28
commit
d37d0e4b59
Notes:
github-actions[bot]
2025-04-19 11:09:12 +00:00
Author: https://github.com/skyz1 Commit: https://github.com/LadybirdBrowser/ladybird/commit/d37d0e4b591 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4399 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/trflynn89
@@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
|
||||
<script>
|
||||
self.GLOBAL = {
|
||||
isWindow: function() { return true; },
|
||||
isWorker: function() { return false; },
|
||||
isShadowRealm: function() { return false; },
|
||||
};
|
||||
</script>
|
||||
<script src="../resources/testharness.js"></script>
|
||||
<script src="../resources/testharnessreport.js"></script>
|
||||
<script src="../common/sab.js"></script>
|
||||
<div id=log></div>
|
||||
<script src="../encoding/encodeInto.any.js"></script>
|
||||
Reference in New Issue
Block a user