forked from mirrors/gecko-dev
See next commit for more info. The idea is to use E10SUtils.canLoadURIInRemoteType to detect if a URI can load in a given E10SUtils process type. Having it to accept a nsIXULRuntime process type, which will be mapped back to an E10SUtils process type, is unnecessary. MozReview-Commit-ID: KeYkuRDyqXO --HG-- extra : source : a8bba29ad2cb20239b87081f77cdf34249d3337b extra : intermediate-source : 18f824674b76d87ed8cdaee516ad450c1c9b6496 extra : histedit_source : 3a0a8be23c1a5e749396d7aa8c7decbe152bc1db
11 lines
380 B
JavaScript
11 lines
380 B
JavaScript
const CHROME_PROCESS = E10SUtils.NOT_REMOTE;
|
|
const WEB_CONTENT_PROCESS = E10SUtils.WEB_REMOTE_TYPE;
|
|
|
|
add_task(async function() {
|
|
let url = "javascript:dosomething()";
|
|
|
|
ok(E10SUtils.canLoadURIInRemoteType(url, CHROME_PROCESS),
|
|
"Check URL in chrome process.");
|
|
ok(E10SUtils.canLoadURIInRemoteType(url, WEB_CONTENT_PROCESS),
|
|
"Check URL in web content process.");
|
|
});
|