Skip to content

WebView library entry #276

@sonnyp

Description

@sonnyp

Let's add a WebView library entry.

Here is a quick example, if possible let's use UI to create the WebView object instead

import WebKit from "gi://WebKit?version=6.0";

const web_view = new WebKit.WebView();

web_view.load_uri("https://gnome.org/");
workbench.preview(web_view);

Unfortunately the documentation at https://webkitgtk.org/reference/webkit2gtk/stable/ isn't up to date (4.1 instead of 6.0) but on Fedora you can install the correct documentation with sudo dnf install webkitgtk6.0-doc and read it with DevHelp

Let's look at important properties/methods too and add a few controls (without replicating a full fledge web browser).

Such as url bar, next/previous buttons and so on.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions