1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

All issues regarding saving passwords should now be fixed.

closes #413
This commit is contained in:
nowrep 2012-07-10 22:15:07 +02:00
parent 2d5c9bcc2b
commit 11972affaf
3 changed files with 11 additions and 8 deletions

View File

@ -161,7 +161,7 @@ Available Defines
example:
$ export QUPZILLA_PREFIX="/usr/"
DISABLE_DBUS Build without QtDBUS module. Native desktop notifications will be disabled.
DISABLE_DBUS Build without QtDBus module. Native desktop notifications will be disabled.
example:
$ export DISABLE_DBUS="true"

View File

@ -24,6 +24,7 @@ Version 1.3.0
* Linux: middle clicking on add tab button will open new tab with global mouse selection's contents
* Linux: generating backtrace and saving it into file upon application crash
* Windows: fixed theme loading delay (showing ugly interface for a second when starting app)
* fixed all issues with saving password (i hope so)
* fixed saving passwords on some sites (parsing WebKit's data format)
* fixed "go to web address" action when newlines were in string
* fixed excessive ssl warnings when rejecting untrusted certificate

View File

@ -233,7 +233,7 @@ void AutoFillModel::completePage(WebPage* page)
void AutoFillModel::post(const QNetworkRequest &request, const QByteArray &outgoingData)
{
//Dont save in private browsing
// Don't save in private browsing
if (mApp->isPrivateSession()) {
return;
}
@ -250,18 +250,19 @@ void AutoFillModel::post(const QNetworkRequest &request, const QByteArray &outgo
return;
}
v = request.attribute((QNetworkRequest::Attribute)(QNetworkRequest::User + 101));
QWebPage::NavigationType type = (QWebPage::NavigationType)v.toInt();
// v = request.attribute((QNetworkRequest::Attribute)(QNetworkRequest::User + 101));
// QWebPage::NavigationType type = (QWebPage::NavigationType)v.toInt();
if (type != QWebPage::NavigationTypeFormSubmitted) {
return;
}
// if (type != QWebPage::NavigationTypeFormSubmitted) {
// return;
// }
QString usernameName;
QString usernameValue;
QString passwordName;
QString passwordValue;
QUrl siteUrl = webPage->url();
const QUrl &siteUrl = webPage->url();
if (!isStoringEnabled(siteUrl)) {
return;
@ -305,6 +306,7 @@ void AutoFillModel::post(const QNetworkRequest &request, const QByteArray &outgo
foreach(const QWebElement & element, foundForm.findAll("input[type=\"text\"]")) {
usernameName = element.attribute("name");
usernameValue = getValueFromData(data, element);
if (!usernameName.isEmpty() && !usernameValue.isEmpty()) {
break;
}