mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Issue #2078 - Follow-up: Ensure empty selector lists aren't iterated when serialized
Really odd that this wasn't caught/doesn't cause any issues on MSVC/unoptimized GCC. Must've been luck, I guess.
This commit is contained in:
parent
18e693464d
commit
2be0261d54
1 changed files with 4 additions and 0 deletions
|
|
@ -1048,6 +1048,10 @@ nsCSSSelectorList::ToString(nsAString& aResult, CSSStyleSheet* aSheet)
|
|||
{
|
||||
aResult.Truncate();
|
||||
nsCSSSelectorList *p = this;
|
||||
// Don't append anything if we're an empty selector list.
|
||||
if (!mSelectors) {
|
||||
return;
|
||||
}
|
||||
for (;;) {
|
||||
p->mSelectors->ToString(aResult, aSheet, true);
|
||||
p = p->mNext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue