mirror of
https://github.com/daijro/camoufox.git
synced 2026-09-13 16:00:59 +00:00
Add Heap.collectGarbage, bump to v130.0.1
- Juggler: Add method to force garbage collection: https://github.com/microsoft/playwright/commit/f2a974b0451db21295a1dde2f8670483d8a5697bs - Bumped to v130.0.1
This commit is contained in:
@@ -256,6 +256,13 @@ class PageHandler {
|
||||
return await this._contentPage.send('disposeObject', options);
|
||||
}
|
||||
|
||||
async ['Heap.collectGarbage']() {
|
||||
Services.obs.notifyObservers(null, "child-gc-request");
|
||||
Cu.forceGC();
|
||||
Services.obs.notifyObservers(null, "child-cc-request");
|
||||
Cu.forceCC();
|
||||
}
|
||||
|
||||
async ['Network.getResponseBody']({requestId}) {
|
||||
return this._pageNetwork.getResponseBody(requestId);
|
||||
}
|
||||
|
||||
@@ -487,6 +487,17 @@ const Browser = {
|
||||
},
|
||||
};
|
||||
|
||||
const Heap = {
|
||||
targets: ['page'],
|
||||
types: {},
|
||||
events: {},
|
||||
methods: {
|
||||
'collectGarbage': {
|
||||
params: {},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const Network = {
|
||||
targets: ['page'],
|
||||
types: networkTypes,
|
||||
@@ -1002,7 +1013,7 @@ const Accessibility = {
|
||||
}
|
||||
|
||||
this.protocol = {
|
||||
domains: {Browser, Page, Runtime, Network, Accessibility},
|
||||
domains: {Browser, Heap, Page, Runtime, Network, Accessibility},
|
||||
};
|
||||
this.checkScheme = checkScheme;
|
||||
this.EXPORTED_SYMBOLS = ['protocol', 'checkScheme'];
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
version=130.0
|
||||
release=beta.5
|
||||
version=130.0.1
|
||||
release=beta.6
|
||||
|
||||
Reference in New Issue
Block a user