mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +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: https://github.com/LadybirdBrowser/ladybird/commit/988df9cc8c4 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) {
|
||||
m_unwritten_chunks.append(chunk);
|
||||
write_chunk();
|
||||
process();
|
||||
|
||||
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();
|
||||
process();
|
||||
}));
|
||||
});
|
||||
|
||||
auto on_complete = GC::create_function(heap(), [this]() {
|
||||
|
|
|
@ -2,5 +2,5 @@ Harness status: OK
|
|||
|
||||
Found 1 tests
|
||||
|
||||
1 Fail
|
||||
Fail enqueue() must not synchronously call write algorithm
|
||||
1 Pass
|
||||
Pass enqueue() must not synchronously call write algorithm
|
Loading…
Add table
Reference in a new issue