--- a/eric6/eric6_browser.py Fri Oct 25 20:19:51 2019 +0200 +++ b/eric6/eric6_browser.py Sun Oct 27 15:58:57 2019 +0100 @@ -20,7 +20,7 @@ try: try: - from PyQt5 import sip + from PyQt5 import sip # __IGNORE_EXCEPTION__ except ImportError: import sip sip.setdestroyonexit(False) @@ -68,7 +68,7 @@ sys.exit(100) import Globals -from Globals import AppInfo +from Globals import AppInfo, qVersionTuple from E5Gui.E5Application import E5Application @@ -159,6 +159,20 @@ # set the library paths for plugins Startup.setLibraryPaths() + if qVersionTuple() >= (5, 12, 0): + from PyQt5.QtWebEngineCore import QWebEngineUrlScheme + scheme = QWebEngineUrlScheme(b"eric") + scheme.setSyntax(QWebEngineUrlScheme.Syntax.Path) + scheme.setFlags(QWebEngineUrlScheme.SecureScheme | + QWebEngineUrlScheme.ContentSecurityPolicyIgnored) + QWebEngineUrlScheme.registerScheme(scheme) + if "--qthelp" in sys.argv and qVersionTuple() >= (5, 12, 0): + from PyQt5.QtWebEngineCore import QWebEngineUrlScheme + scheme = QWebEngineUrlScheme(b"qthelp") + scheme.setSyntax(QWebEngineUrlScheme.Syntax.Path) + scheme.setFlags(QWebEngineUrlScheme.SecureScheme) + QWebEngineUrlScheme.registerScheme(scheme) + app = E5Application(sys.argv) if "--private" not in sys.argv: client = WebBrowserSingleApplicationClient()