Revision 3a1bb16b020919d27b15eb0459f7c00d7f5c2378 authored by ffxbld on 03 March 2016, 21:43:13 UTC, committed by ffxbld on 03 March 2016, 21:43:13 UTC
1 parent 6b2a6af
Raw File
mochitest-e10s-utils.js
// 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;
    Cu.reportError("remote browser crashed while on " +
                   (uri ? uri.spec : "<unknown>") + "\n");
  }, true);
}
back to top