feat: move webFrame scheme privilege methods to main process (#16416)
* chore: deprecate webFrame.registerURLSchemeAsPrivileged * Add register schemes protocol api * update branch to enable browser process API * Revert deprecation changes * Fetch API support * Updated api to take an array, still working on tests * Update tests * Remove web frame API * Minor changes * update scheme registrations on browser and renderer process * fix: enable ses.getBlobData spec * Update breaking changes doc
This commit is contained in:
		
					parent
					
						
							
								257de6a963
							
						
					
				
			
			
				commit
				
					
						940c4c0787
					
				
			
		
					 19 changed files with 319 additions and 319 deletions
				
			
		| 
						 | 
				
			
			@ -695,12 +695,9 @@ describe('session module', () => {
 | 
			
		|||
    })
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  // FIXME: Disabled with C71 upgrade
 | 
			
		||||
  // Re-enable with new api from
 | 
			
		||||
  // https://github.com/electron/electron/tree/webframe-scheme-api
 | 
			
		||||
  xdescribe('ses.getBlobData(identifier, callback)', () => {
 | 
			
		||||
  describe('ses.getBlobData(identifier, callback)', () => {
 | 
			
		||||
    it('returns blob data for uuid', (done) => {
 | 
			
		||||
      const scheme = 'temp'
 | 
			
		||||
      const scheme = 'cors-blob'
 | 
			
		||||
      const protocol = session.defaultSession.protocol
 | 
			
		||||
      const url = `${scheme}://host`
 | 
			
		||||
      before(() => {
 | 
			
		||||
| 
						 | 
				
			
			@ -723,8 +720,6 @@ describe('session module', () => {
 | 
			
		|||
      })
 | 
			
		||||
      const content = `<html>
 | 
			
		||||
                       <script>
 | 
			
		||||
                       const {webFrame} = require('electron')
 | 
			
		||||
                       webFrame.registerURLSchemeAsPrivileged('${scheme}')
 | 
			
		||||
                       let fd = new FormData();
 | 
			
		||||
                       fd.append('file', new Blob(['${postData}'], {type:'application/json'}));
 | 
			
		||||
                       fetch('${url}', {method:'POST', body: fd });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue