mirror of
https://github.com/electron/electron.git
synced 2026-02-07 05:35:02 -05:00
feat: add frame and webContents to webRequest details (#27078)
* feat: add frame and webContents to webRequest details * chore: use frame_converter.h Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
@@ -90,6 +90,9 @@ describe('webRequest module', () => {
|
||||
expect(details.id).to.be.a('number');
|
||||
expect(details.timestamp).to.be.a('number');
|
||||
expect(details.webContentsId).to.be.a('number');
|
||||
expect(details.webContents).to.be.an('object');
|
||||
expect(details.webContents!.id).to.equal(details.webContentsId);
|
||||
expect(details.frame).to.be.an('object');
|
||||
expect(details.url).to.be.a('string').that.is.equal(defaultURL);
|
||||
expect(details.method).to.be.a('string').that.is.equal('GET');
|
||||
expect(details.resourceType).to.be.a('string').that.is.equal('xhr');
|
||||
|
||||
Reference in New Issue
Block a user