WebUI: Fix cr.ui.List to accept children other than LI
In Files app we added a title inside the list, when clicking in the title it throws an exception in the assertInstanceof() in getListItemAncestor(). This CL fixes getListItemAncestor() to not raise in this condition, instead it returns null as the description says. It also fixes event handlers that calls this function to check if it has returned null. Test: browser_tests --gtest_filter="WebUIResourceBrowserTest.ListTest" Bug: 1063184 Change-Id: Icf92cc30bb0a346c7e19660f847a994286abfea6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2111252 Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Commit-Queue: calamity <calamity@chromium.org> Reviewed-by:calamity <calamity@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#752381}
Showing
Please register or sign in to comment