WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
248699
AX: Add missing null checks to prevent crashes when accessing SVG elements
https://bugs.webkit.org/show_bug.cgi?id=248699
Summary
AX: Add missing null checks to prevent crashes when accessing SVG elements
Tyler Wilcock
Reported
2022-12-02 17:38:37 PST
AX: Add missing null checks to prevent crashes when accessing SVG elements
Attachments
Patch
(7.68 KB, patch)
2022-12-02 18:14 PST
,
Tyler Wilcock
no flags
Details
Formatted Diff
Diff
Patch
(7.64 KB, patch)
2022-12-03 11:24 PST
,
Tyler Wilcock
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-12-02 17:38:48 PST
<
rdar://problem/102924620
>
Tyler Wilcock
Comment 2
2022-12-02 18:14:45 PST
Created
attachment 463864
[details]
Patch
Andres Gonzalez
Comment 3
2022-12-03 10:02:34 PST
(In reply to Tyler Wilcock from
comment #2
)
> Created
attachment 463864
[details]
> Patch
--- a/Source/WebCore/accessibility/AccessibilityNodeObject.cpp +++ b/Source/WebCore/accessibility/AccessibilityNodeObject.cpp + if (focusedElement == m_node || isFocusedWebArea()) return true; return false; While at it, can you replace the above 4 lines with: return focusedElement == m_node || isFocusedWebArea(); Looks good. Thanks!
Andres Gonzalez
Comment 4
2022-12-03 10:13:51 PST
(In reply to Tyler Wilcock from
comment #2
)
> Created
attachment 463864
[details]
> Patch
--- a/Source/WebCore/accessibility/AccessibilityNodeObject.cpp +++ b/Source/WebCore/accessibility/AccessibilityNodeObject.cpp @@ -2428,10 +2428,17 @@ bool AccessibilityNodeObject::isFocused() const it may be even better to return early in: auto* focusedElement = document.focusedElement(); if (!focusedElement) return false; if (focusedElement == m_node) return true; and then do the web area stuff.
Tyler Wilcock
Comment 5
2022-12-03 11:24:00 PST
Created
attachment 463869
[details]
Patch
Tyler Wilcock
Comment 6
2022-12-04 11:47:25 PST
rdar://102843966
EWS
Comment 7
2022-12-04 12:29:49 PST
Committed
257359@main
(cdd13301fca6): <
https://commits.webkit.org/257359@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 463869
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug