Avoid automatically displaying local URLs in WebEnginePart

Authored by stefanocrocco on Jan 4 2020, 10:38 AM.

Description

Avoid automatically displaying local URLs in WebEnginePart

Summary:
When a file URL is passed to WebEnginePage::acceptNavigationRequest,
don't allow QtWebEngine to decide what to do with it (open it in the
QWebEnginePage or not) but let Konqueror make the choice according to
the user's configuration.

Whitout this change, clicking on the "Home" link in the introduction
page (konq:konqueror) opens the page in WebEnginePart, while it should
open it in DolphinPart (or whichever part the user has chosen to display
directories).

Test Plan:
from the introduction page (konq:konqueror) click the "Home Folder"
link and check that the home folder is opened in DolphinPart and not
WebEnginePart. Create an HTML file with a link to a local image file, open the
HTML file in Konqueror and click on the link to the image. check that the image
is opened in the part chosen to handle images.

Reviewers: dfaure

Reviewed By: dfaure

Differential Revision: https://phabricator.kde.org/D26417

Details

Committed
stefanocroccoJan 4 2020, 7:49 PM
Reviewer
dfaure
Differential Revision
D26417: Avoid automatically displaying local URLs in WebEnginePart
Parents
R226:aba7679daa22: about folder is gone
Branches
Unknown
Tags
Unknown