зеркало из https://github.com/mozilla/gecko-dev.git
Bug 112682
Some rules have no parentStyleSheet. Add a null check. r=cbiesinger sr=bzbarsky
This commit is contained in:
Родитель
7e404dbe23
Коммит
e0839b608f
|
@ -364,11 +364,17 @@ function(aRow, aColId)
|
|||
default:
|
||||
return rule.cssText;
|
||||
}
|
||||
} else if (aColId == "olcFileURL") {
|
||||
return rule.parentStyleSheet.href;
|
||||
} else if (aColId == "olcWeight") {
|
||||
}
|
||||
|
||||
if (aColId == "olcFileURL") {
|
||||
return rule.parentStyleSheet ? rule.parentStyleSheet.href : "";
|
||||
}
|
||||
|
||||
if (aColId == "olcWeight") {
|
||||
return rule.type == CSSRule.STYLE_RULE ? this.mDOMUtils.getRuleWeight(rule) : "";
|
||||
} else if (aColId == "olcLine") {
|
||||
}
|
||||
|
||||
if (aColId == "olcLine") {
|
||||
return rule.type == CSSRule.STYLE_RULE ? this.mDOMUtils.getRuleLine(rule) : "";
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче