[Webkit-unassigned] [Bug 30123] [GTK] Segfault while testing accessibility/iframe-bastardization.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 21 08:32:37 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=30123


Mario Sanchez Prada <msanchez at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #71443|                            |review?
               Flag|                            |




--- Comment #2 from Mario Sanchez Prada <msanchez at igalia.com>  2010-10-21 08:32:37 PST ---
Created an attachment (id=71443)
 --> (https://bugs.webkit.org/attachment.cgi?id=71443&action=review)
Patch proposal

The attached patch fixed the crash by properly checking that m_element is not a null value before actually using it. Current code was failing because the ASSERT(m_element) statement will not work out of debug builds, so it's needed (as it's done in other functions in the same file) to add that extra check. On top of that, now that it's 100% sure m_element is not a null value if it passes that check, we can ASSERT(ATK_IS_OBJECT(m_element)) instead of just doing ASSERT(m_element)

Please notice that this patch just fixes the crash (which is what this bug is about), but it doesn't fix anything else so the Layout test can't be removed yet from the Skipped file. That would be another bug, IMHO.

Asking for review.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list