mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 05:44:10 +00:00
XUL doesn't implement .style; catch the exception it throws. Bug 218222
followup-to-followup, r=caillon, sr=dbaron
This commit is contained in:
parent
aadb5a8e06
commit
c014fb7dd8
@ -333,9 +333,12 @@ function StyleRuleView(aObject)
|
||||
this.mSheetRules = aObject.cssRules;
|
||||
} else {
|
||||
this.mRules = this.mDOMUtils.getCSSStyleRules(aObject);
|
||||
if (aObject.hasAttribute("style"))
|
||||
this.mStyleAttribute =
|
||||
new XPCNativeWrapper(aObject, "style").style;
|
||||
if (aObject.hasAttribute("style")) {
|
||||
try {
|
||||
this.mStyleAttribute =
|
||||
new XPCNativeWrapper(aObject, "style").style;
|
||||
} catch (ex) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user