src/eric7/WebBrowser/WebBrowserWindow.py

branch
eric7
changeset 11104
683af9c45c5b
parent 11103
382e5c9a43f0
child 11105
ec86fc991d28
equal deleted inserted replaced
11103:382e5c9a43f0 11104:683af9c45c5b
4174 """ 4174 """
4175 Private slot to clear the private data. 4175 Private slot to clear the private data.
4176 """ 4176 """
4177 from .WebBrowserClearPrivateDataDialog import WebBrowserClearPrivateDataDialog 4177 from .WebBrowserClearPrivateDataDialog import WebBrowserClearPrivateDataDialog
4178 4178
4179 # TODO: add entry "Website Permissions"
4180 dlg = WebBrowserClearPrivateDataDialog(parent=self) 4179 dlg = WebBrowserClearPrivateDataDialog(parent=self)
4181 if dlg.exec() == QDialog.DialogCode.Accepted: 4180 if dlg.exec() == QDialog.DialogCode.Accepted:
4182 # browsing history, search history, favicons, disk cache, cookies, 4181 # browsing history, search history, favicons, disk cache, cookies,
4183 # passwords, web databases, downloads, zoom values, SSL error 4182 # passwords, web databases, downloads, zoom values, SSL error
4184 # exceptions, history period 4183 # exceptions, website permissions, history period
4185 ( 4184 (
4186 history, 4185 history,
4187 searches, 4186 searches,
4188 favicons, 4187 favicons,
4189 cache, 4188 cache,
4190 cookies, 4189 cookies,
4191 passwords, 4190 passwords,
4192 downloads, 4191 downloads,
4193 zoomValues, 4192 zoomValues,
4194 sslExceptions, 4193 sslExceptions,
4194 permissions,
4195 historyPeriod, 4195 historyPeriod,
4196 ) = dlg.getData() 4196 ) = dlg.getData()
4197 if history: 4197 if history:
4198 self.historyManager().clear(historyPeriod) 4198 self.historyManager().clear(historyPeriod)
4199 self.__tabWidget.clearClosedTabsList() 4199 self.__tabWidget.clearClosedTabsList()
4219 self.passwordManager().clear() 4219 self.passwordManager().clear()
4220 if zoomValues: 4220 if zoomValues:
4221 ZoomManager.instance().clear() 4221 ZoomManager.instance().clear()
4222 if sslExceptions: 4222 if sslExceptions:
4223 self.networkManager().clearSslExceptions() 4223 self.networkManager().clearSslExceptions()
4224 # TODO: add entry "Website Permissions" 4224 if permissions and QtUtilities.qVersionTuple() >= (6, 8, 0):
4225 for permission in self.webProfile().listAllPermissions():
4226 permission.reset()
4225 4227
4226 @pyqtSlot() 4228 @pyqtSlot()
4227 def __showEnginesConfigurationDialog(self): 4229 def __showEnginesConfigurationDialog(self):
4228 """ 4230 """
4229 Private slot to show the search engines configuration dialog. 4231 Private slot to show the search engines configuration dialog.

eric ide

mercurial