fix: crash when doing redirect navigation with webRequest listener (#21838)
* fix: pass navigation_ui_data to proxying factory * fix: clone response instead of move in redirect
This commit is contained in:
parent
36fac7bfec
commit
fbc2f8344f
4 changed files with 33 additions and 6 deletions
|
@ -121,6 +121,14 @@ describe('webRequest module', () => {
|
|||
const { data } = await ajax(defaultURL)
|
||||
expect(data).to.equal('/redirect')
|
||||
})
|
||||
|
||||
it('does not crash for redirects', async () => {
|
||||
ses.webRequest.onBeforeRequest((details, callback) => {
|
||||
callback({ cancel: false })
|
||||
})
|
||||
await ajax(defaultURL + 'serverRedirect')
|
||||
await ajax(defaultURL + 'serverRedirect')
|
||||
})
|
||||
})
|
||||
|
||||
describe('webRequest.onBeforeSendHeaders', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue