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
parent 6410310c1d
commit 1387297d98

View File

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