Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 let gBugWindow;
7 function onLoad() {
8 gBugWindow.removeEventListener("load", onLoad);
9 gBugWindow.addEventListener("unload", onUnload);
10 gBugWindow.close();
11 }
13 function onUnload() {
14 gBugWindow.removeEventListener("unload", onUnload);
15 window.focus();
16 finish();
17 }
19 // This test opens and then closes the certificate manager to test that it
20 // does not leak. The test harness keeps track of and reports leaks, so
21 // there are no actual checks here.
22 function test() {
23 waitForExplicitFinish();
24 gBugWindow = window.openDialog("chrome://pippki/content/certManager.xul");
25 gBugWindow.addEventListener("load", onLoad);
26 }