[Webkit-unassigned] [Bug 161276] AX: Crash at AccessibilityRenderObject::computeAccessibilityIsIgnored const + 552
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 30 23:42:32 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=161276
--- Comment #8 from chris fleizach <cfleizach at apple.com> ---
(In reply to comment #7)
> (In reply to comment #6)
> > Maybe we can just do
> >
> > RenderObject protect(mrenderer)
> >
> > Then access it everywhere with
> >
> > protect.isBR() and likewise with dot operator
> >
>
> Why would this work? A reference is just an alia of the object and the
> object can still be nulled during this function, right? And C++ has
> undefined behavior on null reference, it will also cause crash?
I see a number of examples like this
Ref<Element> protect(*element);
bool successfullyFocused = newDocument->setFocusedElement(element, direction);
It seems however, if we do
RenderObject protect(m_renderer)
and then access protect, as an object that would solve our problem. Our problem is now that the pointer inside m_renderer is bad, but rather what m_renderer points to. If we copy what m_renderer pointed to and use that for the duration of the method, it seems like that would work
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160831/231c9235/attachment.html>
More information about the webkit-unassigned
mailing list