diff options
author | Simon Rettberg | 2022-07-14 16:42:28 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-07-14 16:42:28 +0200 |
commit | 6d79fb7c5165c52ebb06ffe5932df65b2e1fce73 (patch) | |
tree | f8f3ad9c33fdb496f7929073d2dd893eb82acd2c | |
parent | Fix showing browser immediately if only shib-login is enabled (diff) | |
download | slxgreeter-6d79fb7c5165c52ebb06ffe5932df65b2e1fce73.tar.gz slxgreeter-6d79fb7c5165c52ebb06ffe5932df65b2e1fce73.tar.xz slxgreeter-6d79fb7c5165c52ebb06ffe5932df65b2e1fce73.zip |
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.
-rw-r--r-- | src/webview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |