Bug 335143 - Target ABI may not contain underscores. r=bsmedberg

This commit is contained in:
rob_strong%exchangecode.com 2006-05-02 18:09:43 +00:00
Родитель 0a156931ec
Коммит 1c4364a6b5
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -4085,9 +4085,9 @@ ExtensionManager.prototype = {
var requireABICompatibility = false;
while (targetPlatforms.hasMoreElements()) {
var targetPlatform = stringData(targetPlatforms.getNext());
var tokens = targetPlatform.split("_");
var os = tokens[0];
var abi = (tokens.length > 1) ? tokens[1] : null;
var os = targetPlatform.split("_")[0];
var index = targetPlatform.indexOf("_");
var abi = index != -1 ? targetPlatform.substr(index + 1) : null;
if (os == gOSTarget) {
foundMatchingOS = true;
// The presence of any ABI part after our OS means ABI is important.