feat: migrate webRequest module to NetworkService (Part 7) (#19820)
* fix: gin treats Function as Dictionary when doing convertions * fix: check if listener exists * fix: listener callback should be executed in next tick * feat: make InProgressRequest work * test: re-enable protocol test that relies on webRequest * chore: merge conditions
This commit is contained in:
parent
1dc02e6dbc
commit
cd1b15a155
5 changed files with 38 additions and 14 deletions
|
@ -532,7 +532,7 @@ describe('protocol module', () => {
|
|||
expect({ ...qs.parse(r.data) }).to.deep.equal(postData)
|
||||
})
|
||||
|
||||
it.skip('can use custom session', async () => {
|
||||
it('can use custom session', async () => {
|
||||
const customSession = session.fromPartition('custom-ses', { cache: false })
|
||||
customSession.webRequest.onBeforeRequest((details, callback) => {
|
||||
expect(details.url).to.equal('http://fake-host/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue