mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-02 17:28:50 +02:00
This goes through the previous changes in the dependencies of bug 877389, and does two things: 1) Remove instances of \n 2) Change reporting of exceptions so that they are passed as separate arguments. This should result in an improved display of the exception in the browser console, should it occur. Differential Revision: https://phabricator.services.mozilla.com/D180843
17 lines
451 B
JavaScript
17 lines
451 B
JavaScript
// Utilities for running tests in an e10s environment.
|
|
|
|
function e10s_init() {
|
|
// Listen for an 'oop-browser-crashed' event and log it so people analysing
|
|
// test logs have a clue about what is going on.
|
|
window.addEventListener(
|
|
"oop-browser-crashed",
|
|
event => {
|
|
let uri = event.target.currentURI;
|
|
console.error(
|
|
"remote browser crashed while on",
|
|
uri ? uri.spec : "<unknown>"
|
|
);
|
|
},
|
|
true
|
|
);
|
|
}
|