mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 857334 - Fix crash in mozilla::a11y::XULTextFieldAccessible::FrameSelection
Bug 857334 - Fix crash in mozilla::a11y::XULTextFieldAccessible::FrameSelection, r=tbsaunde
This commit is contained in:
parent
619ee71fa7
commit
c69d624cdb
@ -830,6 +830,10 @@ already_AddRefed<nsFrameSelection>
|
||||
XULTextFieldAccessible::FrameSelection()
|
||||
{
|
||||
nsCOMPtr<nsIContent> inputContent(GetInputField());
|
||||
NS_ASSERTION(inputContent, "No input content");
|
||||
if (!inputContent)
|
||||
return nullptr;
|
||||
|
||||
nsIFrame* frame = inputContent->GetPrimaryFrame();
|
||||
return frame ? frame->GetFrameSelection() : nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user