From 30e2c80691b3544e212e7539099ab17df7dfdbcb Mon Sep 17 00:00:00 2001 From: Blake Winton Date: Thu, 8 Mar 2012 20:27:55 -0500 Subject: [PATCH] Bug 704223 - styles added in data urls are displayed badly in the rule view; r=prouget --- browser/devtools/styleinspector/CssLogic.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/devtools/styleinspector/CssLogic.jsm b/browser/devtools/styleinspector/CssLogic.jsm index 0a431db857d4..f3186913f288 100644 --- a/browser/devtools/styleinspector/CssLogic.jsm +++ b/browser/devtools/styleinspector/CssLogic.jsm @@ -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; } /**