--- a/src/eric7/WebBrowser/FeaturePermissions/FeaturePermissionBar.py Thu May 25 11:12:05 2023 +0200 +++ b/src/eric7/WebBrowser/FeaturePermissions/FeaturePermissionBar.py Thu May 25 19:51:47 2023 +0200 @@ -64,12 +64,10 @@ QWebEnginePage.Feature.DesktopAudioVideoCapture: self.tr( "{0} wants to capture audio and video of your screen." ), + QWebEnginePage.Feature.Notifications: self.tr( + "{0} wants to use desktop notifications." + ), } - with contextlib.suppress(AttributeError): - # this was re-added in Qt 5.13.0 - self.__permissionFeatureTexts[ - QWebEnginePage.Feature.Notifications - ] = self.tr("{0} wants to use desktop notifications.") self.__permissionFeatureIconNames = { QWebEnginePage.Feature.Geolocation: "geolocation", @@ -79,12 +77,8 @@ QWebEnginePage.Feature.MouseLock: "mouse", QWebEnginePage.Feature.DesktopVideoCapture: "desktopVideoCapture", QWebEnginePage.Feature.DesktopAudioVideoCapture: "desktopAudioVideoCapture", + QWebEnginePage.Feature.Notifications: "notification", } - with contextlib.suppress(AttributeError): - # this was re-added in Qt 5.13.0 - self.__permissionFeatureIconNames[ - QWebEnginePage.Feature.Notifications - ] = "notification" self.setAutoFillBackground(True) self.__layout = QHBoxLayout()