Bug 759221 - 2/6 - don't use file URIs in Android mochitests - r=jmaher

This commit is contained in:
Benoit Jacob 2012-06-08 13:41:38 -04:00
Родитель ad7333311e
Коммит b4efaa609d
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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;