Files
UXP-mirror/browser/base/content/test/general/browser_e10s_javascript.js
T
2018-02-02 04:16:08 -05:00

12 lines
386 B
JavaScript

const CHROME_PROCESS = Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
const CONTENT_PROCESS = Ci.nsIXULRuntime.PROCESS_TYPE_CONTENT;
add_task(function*() {
let url = "javascript:dosomething()";
ok(E10SUtils.canLoadURIInProcess(url, CHROME_PROCESS),
"Check URL in chrome process.");
ok(E10SUtils.canLoadURIInProcess(url, CONTENT_PROCESS),
"Check URL in content process.");
});