mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
70d5a0bb34
This reworks how the Mochitest DOMWINDOW and DOCSHELL leak detector works. Rather than collecting immediately in the top-level script, it sends a message to all processes telling them to carry out collections. Each process prints out a message when it has finished the collections. This message is used by the test harness to decide when windows and docshells for that process should be have been destroyed. In non-e10s mode, the shutdown leak detector is only run in the parent process, to work around various issues with leak detection in the thumbnail process tests.
8 lines
385 B
JavaScript
8 lines
385 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// We run this code in a .jsm rather than here to avoid keeping the current
|
|
// compartment alive.
|
|
Components.utils.import("chrome://mochikit/content/ShutdownLeaksCollector.jsm");
|