Browse Source

Enable sandbox for WebViews

Since v5.0.0 Electron has enabled the mixed sandbox by default. This
means we can sandbox the WebViews, while leaving the main application
un-sandboxed.
pull/3202/head
Noah Vesely 6 years ago
parent
commit
9475a17b77
  1. 2
      app/ux/WebView.js

2
app/ux/WebView.js

@ -167,7 +167,7 @@ Ext.define('Rambox.ux.WebView',{
,partition: 'persist:' + me.record.get('type') + '_' + me.id.replace('tab_', '')
,allowtransparency: 'on'
,autosize: 'on'
,webpreferences: '' //,nativeWindowOpen=true
,webpreferences: 'sandbox: true' //,nativeWindowOpen=true
//,disablewebsecurity: 'on' // Disabled because some services (Like Google Drive) dont work with this enabled
,userAgent: me.getUserAgent()
,preload: './resources/js/rambox-service-api.js'

Loading…
Cancel
Save