Andreas Kling
fc86460134
AK: Move the userspace SharedBuffer from LibC to AK
...
This always felt out-of-place in LibC.
2020-01-01 18:53:34 +01:00
Andreas Kling
d6426e4af9
LibHTML: Allow resource loads to fail
...
It's perfectly normal for resource loads to fail sometimes. When they
do, we now simply pass a null buffer to the callback.
2019-11-30 11:58:47 +01:00
Andreas Kling
e691d16f1c
LibHTML: Decrement the pending loads counter when a load finishes
...
This ensures that the browser statusbar shows the correct number of
still pending resource loads.
2019-11-25 11:47:25 +01:00
Andreas Kling
0d2659c0a2
LibHTML: Use LibProtocol for HTTP requests :^)
...
This moves all of the browser networking to ProtocolServer.
2019-11-24 14:24:59 +01:00
Andreas Kling
06113b4ffe
LibHTML+Browser: Show the number of pending resource loads
...
For now this is simply a counter+hook exposed by ResourceLoader and
shown in the Browser status bar.
This is not very nuanced, and it would be nice to expose more info so
we could eventually do something like a progress bar.
2019-10-10 22:07:08 +02:00
Andreas Kling
a1c8c754eb
LibHTML: Fire the file:// load completion callback asynchronously
...
This makes it consistent with how http:// callbacks are fired.
It would probably be fine to have file:// be synchronous, but at the
same time it's nice to have consistency.
2019-10-08 19:40:48 +02:00
Andreas Kling
3be6d1aff0
LibHTML: Add ResourceLoader to support protocol-agnostic URL loading
...
We now support loading both file:// and http:// URLs. Feel free to
visit http://www.serenityos.org/ and enjoy the fancy good times. :^)
2019-10-08 19:37:15 +02:00