Bug 704223 - styles added in data urls are displayed badly in the rule view; r=prouget

This commit is contained in:
Blake Winton 2012-03-08 20:27:55 -05:00
Родитель 5b2f89841b
Коммит 30e2c80691
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -927,7 +927,8 @@ CssLogic.shortSource = function CssLogic_shortSource(aSheet)
return url.query; return url.query;
} }
return aSheet.href; let dataUrl = aSheet.href.match(/^(data:[^,]*),/);
return dataUrl ? dataUrl[1] : aSheet.href;
} }
/** /**