1314 webEngineSettings.testAttribute( |
1314 webEngineSettings.testAttribute( |
1315 QWebEngineSettings.JavascriptCanPaste), |
1315 QWebEngineSettings.JavascriptCanPaste), |
1316 "WebRTCPublicInterfacesOnly": |
1316 "WebRTCPublicInterfacesOnly": |
1317 webEngineSettings.testAttribute( |
1317 webEngineSettings.testAttribute( |
1318 QWebEngineSettings.WebRTCPublicInterfacesOnly), |
1318 QWebEngineSettings.WebRTCPublicInterfacesOnly), |
|
1319 }) |
|
1320 except AttributeError: |
|
1321 pass |
|
1322 try: |
|
1323 # Qt 5.12+ |
|
1324 cls.webBrowserDefaults.update({ |
|
1325 "DnsPrefetchEnabled": |
|
1326 webEngineSettings.testAttribute( |
|
1327 QWebEngineSettings.DnsPrefetchEnabled), |
1319 }) |
1328 }) |
1320 except AttributeError: |
1329 except AttributeError: |
1321 pass |
1330 pass |
1322 |
1331 |
1323 cls.webEngineSettingsIntitialized = True |
1332 cls.webEngineSettingsIntitialized = True |