Add Heap.collectGarbage, bump to v130.0.1

- Juggler: Add method to force garbage collection: f2a974b045s
- Bumped to v130.0.1
This commit is contained in:
daijro 2024-09-19 05:40:00 -05:00
parent 49db177f02
commit ea0a0363fa
3 changed files with 21 additions and 3 deletions

View file

@ -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);
}

View file

@ -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'];

View file

@ -1,2 +1,2 @@
version=130.0
release=beta.5
version=130.0.1
release=beta.6