mochitest-e10s-utils.js (451B)
1 // Utilities for running tests in an e10s environment. 2 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 console.error( 11 "remote browser crashed while on", 12 uri ? uri.spec : "<unknown>" 13 ); 14 }, 15 true 16 ); 17 }