mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 17:42:04 -08:00
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:
parent
49db177f02
commit
ea0a0363fa
3 changed files with 21 additions and 3 deletions
|
|
@ -256,6 +256,13 @@ class PageHandler {
|
||||||
return await this._contentPage.send('disposeObject', options);
|
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}) {
|
async ['Network.getResponseBody']({requestId}) {
|
||||||
return this._pageNetwork.getResponseBody(requestId);
|
return this._pageNetwork.getResponseBody(requestId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -487,6 +487,17 @@ const Browser = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const Heap = {
|
||||||
|
targets: ['page'],
|
||||||
|
types: {},
|
||||||
|
events: {},
|
||||||
|
methods: {
|
||||||
|
'collectGarbage': {
|
||||||
|
params: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const Network = {
|
const Network = {
|
||||||
targets: ['page'],
|
targets: ['page'],
|
||||||
types: networkTypes,
|
types: networkTypes,
|
||||||
|
|
@ -1002,7 +1013,7 @@ const Accessibility = {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.protocol = {
|
this.protocol = {
|
||||||
domains: {Browser, Page, Runtime, Network, Accessibility},
|
domains: {Browser, Heap, Page, Runtime, Network, Accessibility},
|
||||||
};
|
};
|
||||||
this.checkScheme = checkScheme;
|
this.checkScheme = checkScheme;
|
||||||
this.EXPORTED_SYMBOLS = ['protocol', 'checkScheme'];
|
this.EXPORTED_SYMBOLS = ['protocol', 'checkScheme'];
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
version=130.0
|
version=130.0.1
|
||||||
release=beta.5
|
release=beta.6
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue