fix(fetch): do clear responses when context closes (#8902)
This commit is contained in:
parent
aa76cb5610
commit
1b66581e34
|
|
@ -133,6 +133,7 @@ export abstract class BrowserContext extends SdkObject {
|
||||||
this._closedStatus = 'closed';
|
this._closedStatus = 'closed';
|
||||||
this._deleteAllDownloads();
|
this._deleteAllDownloads();
|
||||||
this._downloads.clear();
|
this._downloads.clear();
|
||||||
|
this.fetchResponses.clear();
|
||||||
if (this._isPersistentContext)
|
if (this._isPersistentContext)
|
||||||
this._onClosePersistent();
|
this._onClosePersistent();
|
||||||
this._closePromiseFulfill!(new Error('Context closed'));
|
this._closePromiseFulfill!(new Error('Context closed'));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue