LibWeb: Implement some of SourceBuffer.appendBuffer()

Currently, it just fires the error event immediately.
This commit is contained in:
Zaggy1024
2026-03-26 16:19:25 -05:00
committed by Gregory Bertilson
parent e3b37694f5
commit e627376368
Notes: github-actions[bot] 2026-04-01 07:56:14 +00:00
13 changed files with 385 additions and 9 deletions

View File

@@ -83,4 +83,9 @@ GC::Ptr<WebIDL::CallbackType> SourceBufferList::onremovesourcebuffer()
return event_handler_attribute(EventNames::removesourcebuffer);
}
bool SourceBufferList::contains(SourceBuffer const& source_buffer) const
{
return m_buffers.contains([&](GC::Ref<SourceBuffer> const& contained_buffer) { return contained_buffer == &source_buffer; });
}
}