mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Perform writes during ReadableStreamPipeTo asynchronously
I don't quite see what spec text requires this, but it is explicitly
checked by WPT. We used to pass this test, but that regressed after
commit 3c6010c663
.
This commit is contained in:
parent
6f6b39ecec
commit
988df9cc8c
Notes:
github-actions[bot]
2025-04-14 20:57:12 +00:00
Author: https://github.com/trflynn89
Commit: 988df9cc8c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4357
2 changed files with 11 additions and 4 deletions
|
@ -497,8 +497,15 @@ private:
|
||||||
|
|
||||||
auto on_chunk = GC::create_function(heap(), [this](JS::Value chunk) {
|
auto on_chunk = GC::create_function(heap(), [this](JS::Value chunk) {
|
||||||
m_unwritten_chunks.append(chunk);
|
m_unwritten_chunks.append(chunk);
|
||||||
|
|
||||||
|
if (check_for_error_and_close_states())
|
||||||
|
return;
|
||||||
|
|
||||||
|
HTML::queue_a_microtask(nullptr, GC::create_function(m_realm->heap(), [this]() {
|
||||||
|
HTML::TemporaryExecutionContext execution_context { m_realm, HTML::TemporaryExecutionContext::CallbacksEnabled::Yes };
|
||||||
write_chunk();
|
write_chunk();
|
||||||
process();
|
process();
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
auto on_complete = GC::create_function(heap(), [this]() {
|
auto on_complete = GC::create_function(heap(), [this]() {
|
||||||
|
|
|
@ -2,5 +2,5 @@ Harness status: OK
|
||||||
|
|
||||||
Found 1 tests
|
Found 1 tests
|
||||||
|
|
||||||
1 Fail
|
1 Pass
|
||||||
Fail enqueue() must not synchronously call write algorithm
|
Pass enqueue() must not synchronously call write algorithm
|
Loading…
Add table
Add a link
Reference in a new issue