summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_e10s_javascript.js
blob: 90e847b092e6bc7f2bac294cc5353e69e41ae618 (plain)
1
2
3
4
5
6
7
8
9
10
11
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.");
});