Files
roytam1 ded50ce4b2 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1186794 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in embedding/ with iterators. r=bz. (6fe5143d52)
- Bug 1186794 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in embedding/ with iterators. r=bz. (60b476c313)
- Bug 1186794 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in embedding/ with iterators. r=bz. (67a47940ea)
- Bug 1186794 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in embedding/ with iterators. r=bz. (73429ab30e)
- Bug 1186794 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in embedding/ with iterators. r=bz. (bec166adb4)
- Bug 1186794 (part 6) - Replace nsBaseHashtable::EnumerateRead() calls in embedding/ with iterators. r=bz. (ad0e59fc8d)
- Bug 1206146 - Use channel->AsyncOpen2() in embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp (r=sicking) (f83ab0f992)
- Bug 1168726 - Use performange.getEntriesByType instead of getEntries in test if there is no clear reason. r=baku (d713f13e3a)
- Bug 1217963 - Correct the spelling of "corect" rs=mossop (b573845adf)
- Bug 1217015 - Convert AccEventGen.py to GENERATED_FILES and get rid of most of accessible/xpcom/Makefile.in r=glandium,tbsaunde (b383b420d9)
- bug 1219528 - add ProxyAccessible::{Next,Prev}Sibling() and ProxyAccessible::{First,Last}Child() r=davidb (e36c42e47d)
- Bug 1210441 - ProxyAccessible::IsTable* should take tabular MathML accessibles into account. r=tbsaunde (aca5099564)
- var-let (0f99722c93)
- Bug 862148 - drop support for Sherlock plugins in window.sidebar.addSearchEngine, r=adw. (1dafe754ab)
- Bug 862148 - stop supporting installation of Sherlock plugins through Services.search.addEngine, r=adw. (9dac4aa54c)
- Bug 1214174 - Prevent out of memory exception on accessing window.sidebar/window.external in a windowless browser. r=billm (e5bd691946)
2023-01-24 12:41:43 +08:00

44 lines
1.1 KiB
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
Components.utils.import("resource://gre/modules/Promise.jsm");
var WORKER_SOURCE_URI =
"chrome://test_sqlite_internal/content/worker_sqlite_internal.js";
do_load_manifest("data/chrome.manifest");
function run_test() {
run_next_test();
}
add_task(function() {
let worker = new ChromeWorker(WORKER_SOURCE_URI);
let deferred = Promise.defer();
worker.onmessage = function(event) {
let data = event.data;
switch (data.kind) {
case "do_check_true":
try {
do_check_true(data.args[0]);
} catch (ex) {
// Ignore errors
}
break;
case "do_test_complete":
deferred.resolve();
worker.terminate();
break;
case "do_print":
do_print(data.args[0]);
break;
}
};
worker.onerror = function(event) {
let error = new Error(event.message, event.filename, event.lineno);
worker.terminate();
deferred.reject(error);
};
worker.postMessage("START");
return deferred.promise;
});