summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_e10s_javascript.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/general/browser_e10s_javascript.js')
-rw-r--r--browser/base/content/test/general/browser_e10s_javascript.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/browser/base/content/test/general/browser_e10s_javascript.js b/browser/base/content/test/general/browser_e10s_javascript.js
new file mode 100644
index 000000000..90e847b09
--- /dev/null
+++ b/browser/base/content/test/general/browser_e10s_javascript.js
@@ -0,0 +1,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.");
+});