From: Soren Stoutner Date: Wed, 29 Jan 2025 22:48:43 +0000 (-0700) Subject: Fix loading of websites when the user agent changes. https://redmine.stoutner.com... X-Git-Tag: v0.8~4 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=1f7ac15b8de6d6321c6ee84b0178ef6dc8aa22da;p=PrivacyBrowserPC.git Fix loading of websites when the user agent changes. https://redmine.stoutner.com/issues/821 --- diff --git a/COPYING b/COPYING index bc16d08..ab6ac2b 100644 --- a/COPYING +++ b/COPYING @@ -1,5 +1,5 @@ SPDX-License-Identifier: GPL-3.0-or-later -SPDX-FileCopyrightText: 2016-2017, 2021-2024 Soren Stoutner +SPDX-FileCopyrightText: 2016-2017, 2021-2025 Soren Stoutner This file is part of Privacy Browser PC . @@ -17,7 +17,7 @@ details. GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -661,7 +661,7 @@ the "copyright" line and a pointer to where the full notice is found. GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. @@ -680,11 +680,11 @@ might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see -. +. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read -. +. diff --git a/doc/index.docbook b/doc/index.docbook index 3bd7754..f685525 100644 --- a/doc/index.docbook +++ b/doc/index.docbook @@ -1,23 +1,18 @@ + You should have received a copy of the GNU Free Documentation License + along with this program. If not, see . --> @@ -42,7 +37,7 @@ - 2016-2017, 2021-2024 + 2016-2017, 2021-2025 &Soren.Stoutner; @@ -2018,7 +2013,7 @@ Credits and License - Privacy Browser PC copyright 2016-2017, 2021-2024 Soren Stoutner soren@stoutner.com. + Privacy Browser PC copyright 2016-2017, 2021-2025 Soren Stoutner soren@stoutner.com. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a5e0a2f..799c44e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-3.0-or-later -# SPDX-FileCopyrightText: 2022-2024 Soren Stoutner +# SPDX-FileCopyrightText: 2022-2025 Soren Stoutner # # This file is part of Privacy Browser PC . # @@ -97,8 +97,8 @@ install(TARGETS privacybrowser ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) # Install Privacy Browser according to the instructions in the desktop file, specifying the permissions. install(PROGRAMS com.stoutner.privacybrowser.desktop DESTINATION ${KDE_INSTALL_APPDIR} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) -# Install the metadata file. -install(FILES com.stoutner.privacybrowser.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) +# Install the metainfo file. +install(FILES com.stoutner.privacybrowser.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) # Install the notifyrc file. install(FILES privacybrowser.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR}) diff --git a/src/com.stoutner.privacybrowser.appdata.xml b/src/com.stoutner.privacybrowser.appdata.xml deleted file mode 100644 index 58e5681..0000000 --- a/src/com.stoutner.privacybrowser.appdata.xml +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - com.stoutner.privacybrowser - - GFDL-1.3 - - Privacy Browser - - A web browser that respects your privacy - - -

- Privacy Browser is a web browser based on Qt WebEngine with a focus on privacy and security. - Features like JavaScript and cookies are disabled by default but are easy to automatically enable on-the-fly or by domain. -

-
- - GPL-3.0-or-later - - - Soren Stoutner - - - - Network - WebBrowser - - - https://www.stoutner.com/privacy-browser-pc/ - https://redmine.stoutner.com/projects/privacy-browser-pc/issues - https://www.stoutner.com/donations/ - https://redmine.stoutner.com/projects/privacy-browser-pc/boards - - com.stoutner.privacybrowser.desktop - - - - -

Migrate to KDE 6.

-

Colorize the requests counter background.

-

Restore the current URL text when switching tabs.

-

Update the zoom icons.

-

Adjust some of the default dialog sizes to be smaller.

-

Update the domains database in all windows when it changes.

-

Add an option to delete all domains settings at once.

-
-
- - - -

Fix a PIE/PIC crash in the Ubuntu packages (hopefully).

-

Add entries to open in other browsers to the window and context menus.

-

Make the Requests Detail dialog scrollable.

-
-
- - - -

Fix the domain settings dialog not fitting on small screens.

-

Apply domain settings even when the main URL is explicitly allowed by the filter lists.

-
-
- - - -

Add filter lists.

-

Add URL syntax highlighting.

-

Add a DevTools interface.

-

Implement opening and saving of MHT web archives.

-

Handle HTTP authentication.

-

Remember the download directory.

-

Update bookmarks in all windows when modified.

-

Display Unicode URLs in Punycode.

-

Multiple small improvements to the code and the user experience.

-
-
- - - -

Add bookmarks.

-

Add zoom controls to the status bar and a default zoom shortcut.

-

Add keyboard shortcuts for the URL toolbar actions.

-

Add an action to view page source.

-

Change the domain settings combo boxes to list enabled above disabled.

-

File downloads can now show the size before the download begins.

-

Add PIE (Position Independent Executable) compiler flags.

-

Fix a bug that sometimes allowed multiple domain settings to be created.

-

Fix the download notification not being cleared on Xfce.

-
-
- - - -

Add a setting to control spatial navigation.

-

Add an action to reload and bypass cache.

-

Fix a crash if one Privacy Browser window is closed while a tab within it is loading.

-

Add keyboard+click commands to the Handbook.

-
-
- - - -

Add the changelog to the Handbook.

-

Add the missing current domain settings icon on Gnome and Xfce.

-

Make changes to build on Guix.

-
-
- - - -

Fix a crash on GNOME when downloading a file with local storage disabled.

-

Fix problems with missing icons on GNOME.

-

Display an animated favorite icon while a webpage is loading.

-

Fix the Handbook on non-KDE systems.

-

Change the order of entries in the WebEngine context menu.

-

Make spellcheck languages easier to click on.

-

Only generate a HTTP ping dialog if the request is made by the current tab.

-

Add a section to the Handbook about HTTP pings.

-
-
- - - -

Initial release.

-
-
-
- - - privacybrowser - - - - - https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blob_plain;f=doc/privacybrowser-window.png;hb=HEAD - The main Privacy Browser window. - - - - soren@stoutner.com - - - -
diff --git a/src/com.stoutner.privacybrowser.metainfo.xml b/src/com.stoutner.privacybrowser.metainfo.xml new file mode 100644 index 0000000..58e5681 --- /dev/null +++ b/src/com.stoutner.privacybrowser.metainfo.xml @@ -0,0 +1,167 @@ + + + + + + + + + com.stoutner.privacybrowser + + GFDL-1.3 + + Privacy Browser + + A web browser that respects your privacy + + +

+ Privacy Browser is a web browser based on Qt WebEngine with a focus on privacy and security. + Features like JavaScript and cookies are disabled by default but are easy to automatically enable on-the-fly or by domain. +

+
+ + GPL-3.0-or-later + + + Soren Stoutner + + + + Network + WebBrowser + + + https://www.stoutner.com/privacy-browser-pc/ + https://redmine.stoutner.com/projects/privacy-browser-pc/issues + https://www.stoutner.com/donations/ + https://redmine.stoutner.com/projects/privacy-browser-pc/boards + + com.stoutner.privacybrowser.desktop + + + + +

Migrate to KDE 6.

+

Colorize the requests counter background.

+

Restore the current URL text when switching tabs.

+

Update the zoom icons.

+

Adjust some of the default dialog sizes to be smaller.

+

Update the domains database in all windows when it changes.

+

Add an option to delete all domains settings at once.

+
+
+ + + +

Fix a PIE/PIC crash in the Ubuntu packages (hopefully).

+

Add entries to open in other browsers to the window and context menus.

+

Make the Requests Detail dialog scrollable.

+
+
+ + + +

Fix the domain settings dialog not fitting on small screens.

+

Apply domain settings even when the main URL is explicitly allowed by the filter lists.

+
+
+ + + +

Add filter lists.

+

Add URL syntax highlighting.

+

Add a DevTools interface.

+

Implement opening and saving of MHT web archives.

+

Handle HTTP authentication.

+

Remember the download directory.

+

Update bookmarks in all windows when modified.

+

Display Unicode URLs in Punycode.

+

Multiple small improvements to the code and the user experience.

+
+
+ + + +

Add bookmarks.

+

Add zoom controls to the status bar and a default zoom shortcut.

+

Add keyboard shortcuts for the URL toolbar actions.

+

Add an action to view page source.

+

Change the domain settings combo boxes to list enabled above disabled.

+

File downloads can now show the size before the download begins.

+

Add PIE (Position Independent Executable) compiler flags.

+

Fix a bug that sometimes allowed multiple domain settings to be created.

+

Fix the download notification not being cleared on Xfce.

+
+
+ + + +

Add a setting to control spatial navigation.

+

Add an action to reload and bypass cache.

+

Fix a crash if one Privacy Browser window is closed while a tab within it is loading.

+

Add keyboard+click commands to the Handbook.

+
+
+ + + +

Add the changelog to the Handbook.

+

Add the missing current domain settings icon on Gnome and Xfce.

+

Make changes to build on Guix.

+
+
+ + + +

Fix a crash on GNOME when downloading a file with local storage disabled.

+

Fix problems with missing icons on GNOME.

+

Display an animated favorite icon while a webpage is loading.

+

Fix the Handbook on non-KDE systems.

+

Change the order of entries in the WebEngine context menu.

+

Make spellcheck languages easier to click on.

+

Only generate a HTTP ping dialog if the request is made by the current tab.

+

Add a section to the Handbook about HTTP pings.

+
+
+ + + +

Initial release.

+
+
+
+ + + privacybrowser + + + + + https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blob_plain;f=doc/privacybrowser-window.png;hb=HEAD + The main Privacy Browser window. + + + + soren@stoutner.com + + + +
diff --git a/src/dialogs/DomainSettingsDialog.cpp b/src/dialogs/DomainSettingsDialog.cpp index 8c77d6d..96ea20f 100644 --- a/src/dialogs/DomainSettingsDialog.cpp +++ b/src/dialogs/DomainSettingsDialog.cpp @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-3.0-or-later - * SPDX-FileCopyrightText: 2022-2024 Soren Stoutner + * SPDX-FileCopyrightText: 2022-2025 Soren Stoutner * * This file is part of Privacy Browser PC . * @@ -300,6 +300,19 @@ void DomainSettingsDialog::domainSelected(const QModelIndex &modelIndex) const // Populate the zoom factor combo box. zoomFactorComboBoxPointer->setCurrentIndex(zoomFactorComboBoxIndex); + // Get the combo box palette. + QPalette comboBoxPalette = zoomFactorComboBoxPointer->palette(); + + // Get the combo box window color. + QColor comboBoxWindowColor = comboBoxPalette.color(QPalette::Window); + + // Set the combo box window color back to the palette. This makes the system think the palette has changed. + comboBoxPalette.setColor(QPalette::Window, comboBoxWindowColor); + + // Explicitly set the combo box palette. Because the system thinks the palette has been changed, and because the combo box palette is being explicitly set, + // the system will not propagate the highlighted palette from the widget pointer palette down to the combo box. + zoomFactorComboBoxPointer->setPalette(comboBoxPalette); + // Populate the custom zoom factor spin box according to the zoom factor combo box. if (zoomFactorComboBoxIndex == 0) // System default zoom factor is selected. { diff --git a/src/icons/javascript-warning.svg b/src/icons/javascript-warning.svg index c9e4542..4da7a56 100644 --- a/src/icons/javascript-warning.svg +++ b/src/icons/javascript-warning.svg @@ -1,7 +1,7 @@