Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
5c4b0456
Commit
5c4b0456
authored
Sep 19, 2021
by
Stefano Crocco
Browse files
Add a comment explaining the interaction with WebEnginePart
parent
0326d9b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/konqrun.cpp
View file @
5c4b0456
...
...
@@ -232,6 +232,11 @@ void KonqRun::init()
}
if
(
url
.
scheme
().
startsWith
(
QLatin1String
(
"http"
))
&&
usingWebEngine
())
{
//This is a fake mimetype, needed only to ensure that the URL will be handled
//by WebEnginePart which will then determine the real mimetype. If it's
//a mimetype it can't handle, it'll emit the KParts::BrowserExtension::openUrlRequest
//passing the real mimetype. Knowing the mimetype, KonqMainWindow::openUrl will handle
//it correctly without needing to use KonqRun again.
mimeTypeDetermined
(
QStringLiteral
(
"text/html"
));
}
else
if
(
url
.
isLocalFile
()
&&
(
url
.
host
().
isEmpty
()
||
(
url
.
host
()
==
QLatin1String
(
"localhost"
))
...
...
Stefano Crocco
@stefanocrocco
mentioned in commit
d368615b
·
Oct 02, 2021
mentioned in commit
d368615b
mentioned in commit d368615b28a97993ce53691731f5152f044f98a2
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment