Commit 61a2e897 authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Ignore query and fragment when checking permissions

parent ce764b87
......@@ -527,6 +527,8 @@ void WebEnginePage::slotFeaturePermissionRequested(const QUrl& url, QWebEnginePa
//url.path() is always / (meaning that permissions should be granted site-wide and not per page)
QUrl thisUrl(this->url());
thisUrl.setPath("/");
thisUrl.setQuery(QString());
thisUrl.setFragment(QString());
if (url == thisUrl) {
part()->slotShowFeaturePermissionBar(url, feature);
return;
......
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