Title: [151361] trunk/Tools
- Revision
- 151361
- Author
- [email protected]
- Date
- 2013-06-09 20:08:19 -0700 (Sun, 09 Jun 2013)
Log Message
[Windows] Unreviewed test correction: Prevent DumpRenderTree crashes
* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::role): Prevent crashes when m_element is null. This
happends in some of the 'accessibility' test cases.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (151360 => 151361)
--- trunk/Tools/ChangeLog 2013-06-09 21:22:03 UTC (rev 151360)
+++ trunk/Tools/ChangeLog 2013-06-10 03:08:19 UTC (rev 151361)
@@ -1,3 +1,10 @@
+2013-06-09 Brent Fulgham <[email protected]>
+
+ [Windows] Unreviewed test correction: Prevent DumpRenderTree crashes
+ * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
+ (AccessibilityUIElement::role): Prevent crashes when m_element is null. This
+ happends in some of the 'accessibility' test cases.
+
2013-06-08 [email protected] <[email protected]>
[WinCairo] TestWebKitAPI fails to link.
Modified: trunk/Tools/DumpRenderTree/win/AccessibilityUIElementWin.cpp (151360 => 151361)
--- trunk/Tools/DumpRenderTree/win/AccessibilityUIElementWin.cpp 2013-06-09 21:22:03 UTC (rev 151360)
+++ trunk/Tools/DumpRenderTree/win/AccessibilityUIElementWin.cpp 2013-06-10 03:08:19 UTC (rev 151361)
@@ -201,6 +201,9 @@
JSStringRef AccessibilityUIElement::role()
{
+ if (!m_element)
+ return JSStringCreateWithCharacters(0, 0);
+
VARIANT vRole;
if (FAILED(m_element->get_accRole(self(), &vRole)))
return JSStringCreateWithCharacters(0, 0);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes