Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove QWebEngine usage in core. Rewrite web package manager #2570

Merged
merged 5 commits into from
Nov 28, 2023

Conversation

ctrlaltca
Copy link
Contributor

@ctrlaltca ctrlaltca commented Nov 24, 2023

This PR introduces 2 big modifications.

The first one is related to the help module, that right now can use as its backend Qt's QTextBrowser (a simple html browser) or QWebEngine (based on Chromium, supports javascript etc, usually quite outdated and with a bad security record).
This PR removes the QWEbEngine backend from the help module, since we don't need it features, it's more bloated, and it never appeared in any windows release anyway.

The second one is related to WebPackageManager, aka the "get more themes" and "get more addons" features.
Right now they use QWebEngine to show a page from www.kvirc.net and download files via ftp.
This feature is broken since ages because ftp downloads aren't supported anymore and sometimes because the www.kvirc.net website has a broken ssl cert.
This PR rewrites the WebPackageManager to use plain http requests to a json file containing the information about themes/addons. Right now the file is loaded from http://127.0.0.1/ for local testing, but the target is to host the files in a github repo (implementing #1733) so that contributors can use issues and pull requests.

Once these changes are in, the only usage of QWebEngine left is in the "object" module.

Prerequisite to fix #1733
Note: this PR needs an additional commit to fix the theme/addon urls once the repositories are created.

Copy link
Member

@DarthGandalf DarthGandalf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do I need to serve on 127.0.0.1 to test this?

src/kvirc/ui/KviWebPackageManagementDialog.cpp Outdated Show resolved Hide resolved
@ctrlaltca ctrlaltca merged commit f8b64fb into kvirc:master Nov 28, 2023
3 checks passed
@ctrlaltca ctrlaltca deleted the no_qwebengine branch November 28, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let KVIrc's Addon web repository draw from Github
2 participants