186301e126
* feat: enable context isolation by default * chore: set default in ctx iso getter * spec: make all specs work with the new contextIsolation default * spec: fix affinity specs * spec: update tests for new ctx iso default * spec: update tests for new ctx iso default * spec: update tests for new ctx iso default * spec: update tests for new ctx iso default * chore: move stray prod deps to dev deps * spec: update tests for new ctx iso default * turn off contextIsolation for visibility tests * turn off contextIsolation for <webview> tag nodeintegration attribute loads native modules when navigation happens Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
172 lines
No EOL
3.4 KiB
Text
172 lines
No EOL
3.4 KiB
Text
[
|
|
[
|
|
"top=5,left=10,resizable=no",
|
|
{
|
|
"sender": "[WebContents]",
|
|
"frameId": 1,
|
|
"processId": "placeholder-process-id"
|
|
},
|
|
"about:blank",
|
|
"frame-name",
|
|
"new-window",
|
|
{
|
|
"show": true,
|
|
"width": 800,
|
|
"height": 600,
|
|
"top": 5,
|
|
"left": 10,
|
|
"resizable": false,
|
|
"x": 10,
|
|
"y": 5,
|
|
"webPreferences": {
|
|
"contextIsolation": true,
|
|
"nodeIntegration": false,
|
|
"webviewTag": false,
|
|
"nodeIntegrationInSubFrames": false,
|
|
"openerId": "placeholder-opener-id"
|
|
},
|
|
"webContents": "[WebContents]"
|
|
},
|
|
[],
|
|
{
|
|
"url": "",
|
|
"policy": "default"
|
|
},
|
|
null
|
|
],
|
|
[
|
|
"zoomFactor=2,resizable=0,x=0,y=10",
|
|
{
|
|
"sender": "[WebContents]",
|
|
"frameId": 1,
|
|
"processId": "placeholder-process-id"
|
|
},
|
|
"about:blank",
|
|
"frame-name",
|
|
"new-window",
|
|
{
|
|
"show": true,
|
|
"width": 800,
|
|
"height": 600,
|
|
"resizable": false,
|
|
"x": 0,
|
|
"y": 10,
|
|
"webPreferences": {
|
|
"zoomFactor": "2",
|
|
"contextIsolation": true,
|
|
"nodeIntegration": false,
|
|
"webviewTag": false,
|
|
"nodeIntegrationInSubFrames": false,
|
|
"openerId": "placeholder-opener-id"
|
|
},
|
|
"webContents": "[WebContents]"
|
|
},
|
|
[],
|
|
{
|
|
"url": "",
|
|
"policy": "default"
|
|
},
|
|
null
|
|
],
|
|
[
|
|
"backgroundColor=gray,webPreferences=0,x=100,y=100",
|
|
{
|
|
"sender": "[WebContents]",
|
|
"frameId": 1,
|
|
"processId": "placeholder-process-id"
|
|
},
|
|
"about:blank",
|
|
"frame-name",
|
|
"new-window",
|
|
{
|
|
"show": true,
|
|
"width": 800,
|
|
"height": 600,
|
|
"backgroundColor": "gray",
|
|
"webPreferences": {
|
|
"contextIsolation": true,
|
|
"nodeIntegration": false,
|
|
"webviewTag": false,
|
|
"nodeIntegrationInSubFrames": false,
|
|
"openerId": "placeholder-opener-id",
|
|
"backgroundColor": "gray"
|
|
},
|
|
"x": 100,
|
|
"y": 100,
|
|
"webContents": "[WebContents]"
|
|
},
|
|
[],
|
|
{
|
|
"url": "",
|
|
"policy": "default"
|
|
},
|
|
null
|
|
],
|
|
[
|
|
"x=50,y=20,title=sup",
|
|
{
|
|
"sender": "[WebContents]",
|
|
"frameId": 1,
|
|
"processId": "placeholder-process-id"
|
|
},
|
|
"about:blank",
|
|
"frame-name",
|
|
"new-window",
|
|
{
|
|
"show": true,
|
|
"width": 800,
|
|
"height": 600,
|
|
"x": 50,
|
|
"y": 20,
|
|
"title": "sup",
|
|
"webPreferences": {
|
|
"contextIsolation": true,
|
|
"nodeIntegration": false,
|
|
"webviewTag": false,
|
|
"nodeIntegrationInSubFrames": false,
|
|
"openerId": "placeholder-opener-id"
|
|
},
|
|
"webContents": "[WebContents]"
|
|
},
|
|
[],
|
|
{
|
|
"url": "",
|
|
"policy": "default"
|
|
},
|
|
null
|
|
],
|
|
[
|
|
"show=false,top=1,left=1",
|
|
{
|
|
"sender": "[WebContents]",
|
|
"frameId": 1,
|
|
"processId": "placeholder-process-id"
|
|
},
|
|
"about:blank",
|
|
"frame-name",
|
|
"new-window",
|
|
{
|
|
"show": false,
|
|
"width": 800,
|
|
"height": 600,
|
|
"top": 1,
|
|
"left": 1,
|
|
"x": 1,
|
|
"y": 1,
|
|
"webPreferences": {
|
|
"contextIsolation": true,
|
|
"nodeIntegration": false,
|
|
"webviewTag": false,
|
|
"nodeIntegrationInSubFrames": false,
|
|
"openerId": "placeholder-opener-id"
|
|
},
|
|
"webContents": "[WebContents]"
|
|
},
|
|
[],
|
|
{
|
|
"url": "",
|
|
"policy": "default"
|
|
},
|
|
null
|
|
]
|
|
] |