Commit Graph

4 Commits

Author SHA1 Message Date
Shannon Booth
8c3cb23384 LibWeb+LibURL: Consolidate Origin parsing and serialization into LibURL
Because of the previous awkward factoring of Origin we had two
implementations of Origin serializing and creation. Move the
implementation of DOMURL::url_origin into URL::origin, and
instead use the implemenation of URL::Origin::serialize for
serialization (replacing URL::serialize_origin).

This happens to fix 8 URL subtests as the two implemenations had
diverged, and URL::serialize_origin was previously missing the spec
changes of: whatwg/url@eee49fd and whatwg/url@fff33c3

(cherry picked from commit 501f92b54eee7bcf7b60621aa4238fcbdc610d99;
amended to add leading whitespace to expectation due to serenity not
yet having LadybirdBrowser/ladybird#1603)
2024-11-21 22:16:27 -05:00
Andrew Kaster
c7d4825b44 LibWeb: Prefix AK::Duration with AK Namespace
(cherry picked from commit b20a1d0fcddb999de372a49d213bec01bda24c10)
2024-11-14 17:35:38 -05:00
Colin Reeder
3b03c98e03 LibWeb: Fix handling of SSEs split across chunks
(cherry picked from commit 347928b9508df8f8effe92c372bd72873c4ba2aa)
2024-11-09 07:30:40 -05:00
Timothy Flynn
eb3b8f8ee4 LibWeb: Implement EventSource for server-sent events
EventSource allows opening a persistent HTTP connection to a server over
which events are continuously streamed.

Unfortunately, our test infrastructure does not allow for automating any
tests of this feature yet. It only works with HTTP connections.
2024-05-26 18:29:24 +02:00