mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 789904 - QuerySelector doesn't set result to null on successful call with no matches r=bz
This commit is contained in:
parent
e59f49d26f
commit
745d58d22b
@ -2071,7 +2071,12 @@ nsNodeSelectorTearoff::QuerySelector(const nsAString& aSelector,
|
||||
{
|
||||
nsresult rv;
|
||||
nsIContent* result = mNode->QuerySelector(aSelector, &rv);
|
||||
return result ? CallQueryInterface(result, aReturn) : rv;
|
||||
if (!result) {
|
||||
*aReturn = nullptr;
|
||||
return rv;
|
||||
}
|
||||
|
||||
return CallQueryInterface(result, aReturn);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user