mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D21379 --HG-- extra : moz-landing-system : lando
17 lines
514 B
JavaScript
17 lines
514 B
JavaScript
const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
|
|
// needs to be rooted
|
|
var cacheFlushObserver = { observe: function() {
|
|
cacheFlushObserver = null;
|
|
do_send_remote_message('flushed');
|
|
}};
|
|
|
|
var currentThread = Services.tm.currentThread;
|
|
|
|
function run_test() {
|
|
do_get_profile();
|
|
do_await_remote_message('flush').then(() => {
|
|
Services.cache2.QueryInterface(Ci.nsICacheTesting).flush(cacheFlushObserver);
|
|
});
|
|
run_test_in_child("../unit/test_alt-data_closeWithStatus.js");
|
|
}
|