Bug 1707290 [wpt PR 28671] - Auto-expand details elements for find-in-page, a=testonly
[gecko.git] / testing / mochitest / mochitest-e10s-utils.js
blobb566b9c3dc105f4bb48a9077f2e425a9df544f4b
1 // Utilities for running tests in an e10s environment.
3 function e10s_init() {
4   // Listen for an 'oop-browser-crashed' event and log it so people analysing
5   // test logs have a clue about what is going on.
6   window.addEventListener(
7     "oop-browser-crashed",
8     event => {
9       let uri = event.target.currentURI;
10       Cu.reportError(
11         "remote browser crashed while on " +
12           (uri ? uri.spec : "<unknown>") +
13           "\n"
14       );
15     },
16     true
17   );