WebKit port status update.
We want news!… or at least I suppose that some people want to know the progresses made on the WebKit port. I think that we can split this work in two parts:
- Improvements made on the port.
- Landing in the official WebKit tree.
As for the second part, it is also something that we are still working on. I can say that it is in great shape to be complete before the end of summer. ( The summer ends on the 21th of September… ;)
Improvements made on the port.I do not know if you remember, but in my last blog post I just finished building WebKit. And in fact it was just the beginning of the beginning. To test WebKit we have a “browser-shell” named HaikuLauncher that Ryan did 2 years ago. So my first step was to make this working. And it was not as simple as it sounds. As I said many parts of the WebKit code changed, so I had to adapt these parts of our port just to run HaikuLauncher. As a great optimist, I assumed that, once HaikuLauncher started, the work was completed. Actually I was a bit too optimist. Near is a screenshot of what I got with a really simple html page (a h1, a hr and an image). With some little enhancements on the content size I got the hr to display correctly. But I did not finish my sentences.
The great story of the font handling.My first task was to understand what I did not get any text (even texts in a paragraph tag did not displayed). During the correction process I got some overlapping, some great issues with the font width etc… In short, it was not a funny task to correct this problem. I finally succeed, and now our port displays the text without any problem ( in fact any problem we know for the moment ). As you may notice on the screenshot, the css was in good shape. And indeed I never ran into trouble with it.
Flying with the bitmaps.As you could have seen in the previous screenshot, images were not correctly displayed. This was the next battle. I would like to thanks François who helped me on this issue. It was mostly a conversion problem between different bitmap formats. For the record, I got a sympathic headache: pictures were displayed “italic”. ( Here is a screenshot of it: Italic bitmap.) Of course we avoid it! ( Even if some people thought it could be cool to have all images displayed like that when surfing the internet. )
And then?In the current state, our port can be used to navigate the web, but with some restrictions:
- The scrolling is not correctly handled. Even if you can see the scroll bars in the screenshots, they do not work properly.
- No JPEG images support, but who uses JPEG? Erm… Actually we should use Haiku translators to manage images, but that is not the case for the moment. And as there is no libjpeg in Haiku, there is no JPEG support.
Landing in the official WebKit tree.As part of our project, we wanted the port to be integrated in the official WebKit repository. The WebKit team is opened to new ports, as soon as they are maintained. And I would like to thanks them for accepting us.
Of course it could not be possible to enter the whole code in the tree as simply. All parts of our code need to be reviewed to be sure there is no coding style violation ( Hopefully they provide a tool to check the style of a given code. ), and to be sure that the code is clean of hacks or bugs. And even if I cursed heavily against this reviewing system, I must say that this is a very good thing for the healthiness of the repository.
But, but… and the web-browser?Indeed I did not talk about the native web-browser. As you may know, the renderer is an important part ( if not the most important part ) of a web-browser. So I think ( and I am pretty sure that Ryan will agree with me ) that we cannot incorporate WebKit in our brand new browser until it is stable enough. That is why Ryan and I did not make any enhancement on the web-browser.
There is still a week left before the end of the GSoC. Regarding to the status of the browser I would say that yet it would require some work. Of course I will continue this job with Ryan!
- Haiku monthly activity report - September 2019
- Node.js now available in Haiku
- Haiku monthly activity report - 08/2019
- GSOC 2019 Final Report
- Haiku Activity Report: Performance Edition
- new PVS studio scan
- Coding week 4,5,6
- [GSoc 2019] Weeks #4, #5 and #6 progress report
- Haiku monthly activity report - 06/2019
- Coding week no 2 and 3