keepassxc/src/gui
Steven Noonan 056bbaa921 Improve fetch favicon (#1786)
* Eliminate dependency on libcurl in favor of Qt5Network code
* Supports older Qt versions without QNetworkRequest::FollowRedirectsAttribute

* Show a progress dialog when downloading the favicon. The main utility
  of this is giving the user the option to cancel a download attempt
  (e.g. if it's taking too long). Canceling will try the next fallback URL in the list.

* Try three different ways to obtain the favicon, in this order:
  1) Direct to fully-qualified domain (e.g. https://foo.bar.example.com/favicon.ico)
  2) Direct to 2nd-level domain (e.g. https://example.com/favicon.ico)
  3) Google lookup for 2nd-level domain name (if enabled in settings)

I changed the Google lookup, because a match is more likely to be found
for the 2nd level domain than for the fully-qualified name.

Google's error behavior is strange. If it doesn't find a match, it
doesn't return an error. Instead, it returns a generic default icon,
which is not really the desired result. This also means that unless we
have some way to detect that we've received the generic icon, we can't
fall back to any alternatives.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2018-04-04 22:18:58 -04:00
..
csvImport Implement #1208: CSV Import Created and Modified Dates 2018-01-14 00:42:36 +01:00
entry SSH Agent: Fix wrong slot reference (#1787) 2018-04-04 21:42:14 -04:00
group Introduced missing CustomData on Group and Entry 2018-02-21 13:23:14 +01:00
widgets Use ElidedLabel in DetailsWidget 2018-02-04 15:51:30 +02:00
AboutDialog.cpp Add support for pre-releases 2018-02-18 10:20:34 +01:00
AboutDialog.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
AboutDialog.ui Fix about dialog size policy 2018-02-19 09:40:26 +01:00
Application.cpp Pass (using IPC) command line filenames to already running instance 2018-01-03 16:12:05 +02:00
Application.h Pass (using IPC) command line filenames to already running instance 2018-01-03 16:12:05 +02:00
CategoryListWidget.cpp Avoid use of possibly uninitialized value in CategoryListWidgetDelegate 2018-03-03 20:37:53 +01:00
CategoryListWidget.h Fix funny resizing bug and increase min-padding 2017-02-22 04:24:34 +01:00
CategoryListWidget.ui Make widget scalable and set minimum width based on the widget text 2017-02-22 03:39:13 +01:00
ChangeMasterKeyWidget.cpp Add warning when using legacy key file formats. 2018-01-14 18:26:28 -05:00
ChangeMasterKeyWidget.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
ChangeMasterKeyWidget.ui Show busy indicator while scanning for YubiKeys 2017-02-20 23:20:32 +01:00
Clipboard.cpp Do not delete MacPasteboard instance on exit, resolves #1543 2018-03-03 02:33:43 +01:00
Clipboard.h Do not delete MacPasteboard instance on exit, resolves #1543 2018-03-03 02:33:43 +01:00
CloneDialog.cpp Use the emit keyword correctly 2017-09-24 18:00:40 -04:00
CloneDialog.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
CloneDialog.ui Fix clone dialog text 2017-07-20 14:09:33 +02:00
DatabaseOpenWidget.cpp Always hide password on unlock 2018-03-10 23:54:12 -05:00
DatabaseOpenWidget.h Ensure that YubiKey is only polled once, even if showEvent() is called twice 2017-10-24 17:58:27 +02:00
DatabaseOpenWidget.ui Only poll YubiKey for currently visible tab 2017-02-21 02:19:11 +01:00
DatabaseRepairWidget.cpp Fixed memory leaks in non-gui tests 2017-11-27 23:36:09 +01:00
DatabaseRepairWidget.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
DatabaseSettingsWidget.cpp Make cipher and KDF settings properly translatable 2018-03-04 21:01:00 +01:00
DatabaseSettingsWidget.h Fix plural handling in KDF settings 2018-02-04 13:56:49 +01:00
DatabaseSettingsWidget.ui Redesign DatabaseSettingsWidget 2018-01-13 14:24:56 -05:00
DatabaseSettingsWidgetEncryption.ui Fix plural handling in KDF settings 2018-02-04 13:56:49 +01:00
DatabaseSettingsWidgetGeneral.ui Unset explicit label alignment to let platform choose 2018-01-24 00:47:33 +01:00
DatabaseTabWidget.cpp relock database after successful autotype 2018-02-05 20:12:24 +01:00
DatabaseTabWidget.h relock database after successful autotype 2018-02-05 20:12:24 +01:00
DatabaseWidget.cpp attributes: unbreak copy-to-clipboard on KDE 2018-03-06 19:22:38 +01:00
DatabaseWidget.h Refactor DetailsWidget 2018-02-04 15:51:30 +02:00
DatabaseWidgetStateSync.cpp Guarantee that configuration values are committed to disk on exit 2018-02-04 13:56:46 +01:00
DatabaseWidgetStateSync.h Guarantee that configuration values are committed to disk on exit 2018-02-04 13:56:46 +01:00
DetailsWidget.cpp Use edlided label for details widget title and adjust layout spacing 2018-02-26 01:11:57 +01:00
DetailsWidget.h Use ElidedLabel in DetailsWidget 2018-02-04 15:51:30 +02:00
DetailsWidget.ui Use edlided label for details widget title and adjust layout spacing 2018-02-26 01:11:57 +01:00
DialogyWidget.cpp Look for a close button when pressing the escape key. 2015-05-03 19:59:11 +02:00
DialogyWidget.h Coding style fixes. 2015-10-15 18:02:31 +02:00
DragTabBar.cpp Drop Qt module name from include statements. 2013-10-03 15:18:16 +02:00
DragTabBar.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
EditWidget.cpp Ask to apply generated password when commiting an entry edit 2018-02-21 09:38:27 +01:00
EditWidget.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
EditWidget.ui Add "Apply" button to entry and group edit windows (#624) 2017-06-13 20:55:53 -04:00
EditWidgetIcons.cpp Improve fetch favicon (#1786) 2018-04-04 22:18:58 -04:00
EditWidgetIcons.h Improve fetch favicon (#1786) 2018-04-04 22:18:58 -04:00
EditWidgetIcons.ui Pixel-perfect entry edit widgets 2017-02-16 10:35:39 +01:00
EditWidgetProperties.cpp Ask user before deleting custom plugin data and disable button if no data selected 2018-02-21 13:23:14 +01:00
EditWidgetProperties.h Ask user before deleting custom plugin data and disable button if no data selected 2018-02-21 13:23:14 +01:00
EditWidgetProperties.ui Ask user before deleting custom plugin data and disable button if no data selected 2018-02-21 13:23:14 +01:00
FileDialog.cpp refactor saveLastDir code 2017-11-22 22:20:38 +01:00
FileDialog.h refactor saveLastDir code 2017-11-22 22:20:38 +01:00
Font.cpp Refactor fixed font selection into Font class 2017-12-16 09:59:51 +02:00
Font.h Refactor fixed font selection into Font class 2017-12-16 09:59:51 +02:00
IconModels.cpp Always display scaled custom icons. 2016-01-26 22:44:38 +01:00
IconModels.h Merge branch '2.0' 2016-01-29 17:22:37 +01:00
KeePass1OpenWidget.cpp Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
KeePass1OpenWidget.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
KMessageWidget.cpp Improve KMessageWidget visuals 2018-01-19 20:40:56 +01:00
KMessageWidget.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
LineEdit.cpp Drop Qt module name from include statements. 2013-10-03 15:18:16 +02:00
LineEdit.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
MainWindow.cpp Do not ignore MainWindow closeEvent when closing to tray 2018-03-22 12:29:25 +01:00
MainWindow.h SSH Agent: Show error messages if something fails 2018-03-06 18:59:42 +01:00
MainWindow.ui Set toolbar icon size to 22x22 to avoid downsampling 2018-03-04 14:37:31 +01:00
MainWindowAdaptor.cpp add function for locking DBs from DBus, fix #687 2018-01-25 23:48:58 +01:00
MainWindowAdaptor.h add function for locking DBs from DBus, fix #687 2018-01-25 23:48:58 +01:00
MessageBox.cpp Coding style fixes. 2013-10-13 18:08:50 +02:00
MessageBox.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
MessageWidget.cpp Show KeePassHTTP deprecation notice three times and use MessageWidget 2018-01-19 20:44:15 +01:00
MessageWidget.h Show KeePassHTTP deprecation notice three times and use MessageWidget 2018-01-19 20:44:15 +01:00
org.keepassxc.KeePassXC.MainWindow.xml add function for locking DBs from DBus, fix #687 2018-01-25 23:48:58 +01:00
PasswordEdit.cpp Refactor fixed font selection into Font class 2017-12-16 09:59:51 +02:00
PasswordEdit.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
PasswordGeneratorWidget.cpp Ask to apply generated password when commiting an entry edit 2018-02-21 09:38:27 +01:00
PasswordGeneratorWidget.h Ask to apply generated password when commiting an entry edit 2018-02-21 09:38:27 +01:00
PasswordGeneratorWidget.ui Add disambiguation info to source strings 2018-01-21 15:54:46 +01:00
SearchWidget.cpp replaced hard function call with signal connection 2017-08-23 00:21:08 +02:00
SearchWidget.h replaced hard function call with signal connection 2017-08-23 00:21:08 +02:00
SearchWidget.ui More compact search widget 2017-04-06 07:19:56 -04:00
SettingsWidget.cpp Enable focus outline for global auto-type shortcut on macOS 2018-02-23 17:28:40 +01:00
SettingsWidget.h Fix apply button on settings window 2017-06-28 17:09:32 -03:00
SettingsWidgetGeneral.ui Minor changes to address comments 2018-01-28 11:31:56 -05:00
SettingsWidgetSecurity.ui relock database after successful autotype 2018-02-05 20:12:24 +01:00
SetupTotpDialog.cpp Change QTotp class name to Totp 2017-11-20 22:25:09 -02:00
SetupTotpDialog.h Add initial Steam TOTP support 2017-11-20 17:08:01 -07:00
SetupTotpDialog.ui Add disambiguation info to source strings 2018-01-21 15:54:46 +01:00
SortFilterHideProxyModel.cpp Adapt to setSupportedDragActions() begin removed. 2015-09-12 13:51:49 +02:00
SortFilterHideProxyModel.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
TotpDialog.cpp Fix multiple TOTP issues, resolves #1360 2018-01-23 00:22:04 +01:00
TotpDialog.h Fix multiple TOTP issues, resolves #1360 2018-01-23 00:22:04 +01:00
TotpDialog.ui Add TOTP support 2017-05-03 20:55:14 -03:00
UnlockDatabaseDialog.cpp Consistency using filepath and minor code fixes 2018-01-04 19:09:36 -05:00
UnlockDatabaseDialog.h Consistency using filepath and minor code fixes 2018-01-04 19:09:36 -05:00
UnlockDatabaseWidget.cpp Clear database open dialog before and after merging a database (#958) 2017-09-23 11:43:29 -04:00
UnlockDatabaseWidget.h Clear database open dialog before and after merging a database (#958) 2017-09-23 11:43:29 -04:00
WelcomeWidget.cpp Properly save custom header data 2018-02-21 13:23:14 +01:00
WelcomeWidget.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
WelcomeWidget.ui Make 'Welcome to KeePassXC $VERSION' string properly translatable, resolves #1236 2018-01-28 16:44:36 +01:00