From 6d79fb7c5165c52ebb06ffe5932df65b2e1fce73 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 14 Jul 2022 16:42:28 +0200 Subject: Enable LocalStorage for WebKit, so SWITCH IdPs work again For some reason, newer IdPs only check if JavaScript is completely disabled and offer a manual "Continue" button, or, if JS is enabled, check if localStorage is available, and if not, do nothing, not even display an error message. Yay. --- src/webview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webview.cpp b/src/webview.cpp index 4f46a27..73d2b25 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -37,6 +37,8 @@ WebView::WebView(QWidget* parent) _timerReset->setSingleShot(true); connect(page(), SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested())); page()->setForwardUnsupportedContent(true); + page()->settings()->setAttribute(QWebSettings::LocalStorageEnabled, true); + //page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); connect(page(), SIGNAL(unsupportedContent(QNetworkReply*)),this,SLOT(unsupportedContent(QNetworkReply*))); connect(page(), SIGNAL(downloadRequested(QNetworkRequest)),this,SLOT(downloadRequest(QNetworkRequest))); connect(_timerAbortMessage, &QTimer::timeout, this, &WebView::downloadDeniedMessage); -- cgit v1.2.3-55-g7522