Andreas Kling
07d976716f
LibWeb: Remove most uses of the old HTML parser
...
The only remaining client of the old parser is the fragment parser used
by the Element.innerHTML setter. We'll need to implement a bit more
stuff in the new parser before we can switch that over.
2020-06-21 22:29:05 +02:00
Andreas Kling
883dc9260d
LibWeb: Unbreak favicon notifications after Page refactoring
...
Favicon updates now get plumbed from FrameLoader to the PageClient.
2020-06-08 21:35:31 +02:00
Andreas Kling
e04d68a03a
LibWeb: Remove unnecessary on_foo hooks from Frame
...
Frame can just call through the PageClient instead of using hooks.
2020-06-08 21:31:53 +02:00
Andreas Kling
896db187e5
LibWeb: Move Frame.{cpp,h} into a new Frame/ directory
2020-06-07 10:14:41 +02:00
Andreas Kling
71da52482c
LibWeb: Show error page if we can't handle a frame's main resource
...
If we can't figure out how to make a Document for the main resource
in a Frame, just show an error page.
2020-06-06 14:14:43 +02:00
Andreas Kling
f88146c7c9
LibWeb: Let Resource figure out its own encoding and MIME type
...
Also, if the request URL is a data: URL, use the MIME type from the URL
itself if available. This makes it possible to load arbitrary MIME type
data: URLs in the browser :^)
2020-06-06 14:14:43 +02:00
Andreas Kling
de6028dfa7
LibWeb: Turn FrameLoader into a ResourceClient
...
We now use the new resource-based loader for the main resource in each
Frame. This gives us access to caching and sharing. :^)
2020-06-06 14:14:43 +02:00
Andreas Kling
075bd75859
LibWeb: Add a FrameLoader class and move PageView's loading logic there
...
Each Frame now has a FrameLoader which will be responsible for handling
loading inside that frame.
2020-06-06 14:14:43 +02:00