Commit d368615b authored by Stefano Crocco's avatar Stefano Crocco Committed by Andreas Sturmlechner
Browse files

Add a comment explaining the interaction with WebEnginePart

(cherry picked from commit 5c4b0456)
parent ec995b80
......@@ -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"))
......
Markdown is supported
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