Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed display of image infotips for local files

  • Loading branch information...
commit ee158799e197f3b8da2d8e1016b608d4b26f4418 1 parent 3652209
@SebastianZ SebastianZ authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 extension/content/firebug/css/computedPanel.js
View
6 extension/content/firebug/css/computedPanel.js
@@ -600,9 +600,11 @@ CSSComputedPanel.prototype = Obj.extend(Firebug.Panel,
return CSSInfoTip.populateColorInfoTip(infoTip, cssValue.value);
case "url":
- if (Css.isImageRule(Xml.getElementSimpleType(Firebug.getRepObject(target)), prop))
+ if (Css.isImageRule(Xml.getElementSimpleType(propInfo), prop))
{
- var baseURL = propInfo.href || propInfo.matchedSelectors[0].href;
+ var baseURL = typeof propInfo.href == "object" ? propInfo.href.href : propInfo.href;
+ if (!baseURL)
+ baseURL = propInfo.matchedSelectors[0].href;
var relURL = Firebug.CSSModule.parseURLValue(cssValue.value);
var absURL = Url.isDataURL(relURL) ? relURL : Url.absoluteURL(relURL, baseURL);
var repeat = Firebug.CSSModule.parseRepeatValue(value);
Please sign in to comment.
Something went wrong with that request. Please try again.