зеркало из https://github.com/mozilla/gecko-dev.git
Bug 759221 - 2/6 - don't use file URIs in Android mochitests - r=jmaher
This commit is contained in:
Родитель
ad7333311e
Коммит
b4efaa609d
|
@ -155,6 +155,10 @@ var gPlayTests = [
|
|||
// Optionally checks whether the file actually exists on disk at the location
|
||||
// we've specified.
|
||||
function fileUriToSrc(path, mustExist) {
|
||||
// android mochitest doesn't support file://
|
||||
if (navigator.appVersion.indexOf("Android") != -1)
|
||||
return path;
|
||||
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
const Ci = Components.interfaces;
|
||||
const Cc = Components.classes;
|
||||
|
|
Загрузка…
Ссылка в новой задаче