From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../components/formautofill/test/xpcshell/head.js | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 toolkit/components/formautofill/test/xpcshell/head.js (limited to 'toolkit/components/formautofill/test/xpcshell/head.js') diff --git a/toolkit/components/formautofill/test/xpcshell/head.js b/toolkit/components/formautofill/test/xpcshell/head.js new file mode 100644 index 000000000..1cee023f2 --- /dev/null +++ b/toolkit/components/formautofill/test/xpcshell/head.js @@ -0,0 +1,23 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +/* + * Initialization specific to Form Autofill xpcshell tests. + * + * This file is loaded by "loader.js". + */ + +"use strict"; + +// The testing framework is fully initialized at this point, you can add +// xpcshell specific test initialization here. If you need shared functions or +// initialization that are not specific to xpcshell, consider adding them to +// "head_common.js" in the parent folder instead. + +add_task_in_parent_process(function* test_xpcshell_initialize_profile() { + // We need to send the profile-after-change notification manually to the + // startup component to ensure it has been initialized. + Cc["@mozilla.org/formautofill/startup;1"] + .getService(Ci.nsIObserver) + .observe(null, "profile-after-change", ""); +}); -- cgit v1.2.3