Commit 5c4b0456 authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Add a comment explaining the interaction with WebEnginePart

parent 0326d9b8
......@@ -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.
} else if (url.isLocalFile()
&& ( || ( == QLatin1String("localhost"))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment