mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
layout: CascadeSheet: check aSheet is non-null before use.
fix crash when adblock plus is blocking a stylesheet.
This commit is contained in:
parent
5a01efea53
commit
a2da19760e
1 changed files with 1 additions and 1 deletions
|
|
@ -663,7 +663,7 @@ CascadeRuleEnumFunc(css::Rule* aRule, void* aData)
|
|||
/* static */ bool
|
||||
nsCSSRuleProcessor::CascadeSheet(CSSStyleSheet* aSheet, CascadeLayer* aLayer)
|
||||
{
|
||||
if (aSheet->IsApplicable() &&
|
||||
if (aSheet && aSheet->IsApplicable() &&
|
||||
aSheet->UseForPresentation(aLayer->mPresContext,
|
||||
aLayer->mCacheKey) &&
|
||||
aSheet->mInner) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue