Rename option to contextIsolation
This commit is contained in:
		
					parent
					
						
							
								b56bdc83af
							
						
					
				
			
			
				commit
				
					
						ad3b837ad5
					
				
			
		
					 5 changed files with 20 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -1835,7 +1835,7 @@ describe('BrowserWindow module', function () {
 | 
			
		|||
    })
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  describe('isolated option', () => {
 | 
			
		||||
  describe('contextIsolation option', () => {
 | 
			
		||||
    it('separates the page context from the Electron/preload context', (done) => {
 | 
			
		||||
      if (w != null) w.destroy()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1860,7 +1860,7 @@ describe('BrowserWindow module', function () {
 | 
			
		|||
      w = new BrowserWindow({
 | 
			
		||||
        show: false,
 | 
			
		||||
        webPreferences: {
 | 
			
		||||
          isolated: true,
 | 
			
		||||
          contextIsolation: true,
 | 
			
		||||
          preload: path.join(fixtures, 'api', 'isolated-preload.js')
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue