security/manager/ssl/tests/mochitest/browser/browser_certificateManagerLeak.js

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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 }

mercurial