Index: third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html |
diff --git a/third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html b/third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html |
index 2a3262bf6a0ea1b2cac3f29227693a5d40785aa7..203b03cde2b1f543f77d9fa60fc7fc838b9cd900 100644 |
--- a/third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html |
+++ b/third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html |
@@ -32,11 +32,11 @@ |
shouldBeUndefined("accessibilityController.accessibleElementById('innerbutton')"); |
window.accessibilityController.addNotificationListener(function (target, notification) { |
- if (!target.parentElement() || !target.parentElement().parentElement()) |
+ if (!target.parentElement()) |
return; |
// Ignore this notification if it's not within the subtree of the iframe. |
- var frameTarget = target.parentElement().parentElement(); |
+ var frameTarget = target.parentElement(); |
if (frameTarget.name.indexOf("InnerFrame") == -1) |
return; |