DevTools: Warn when revealed node is detached from the document.
If a user right clicks on an element in the console and chooses to reveal it in the elements panel, and the element is not in the document, the operation fails but it is not communicated to the user. This patch adds a warning if the node appears to be detached from the document; it is done through checking the parentNode property, which is the most suitable means in lieu of having the isConnected property available in the Node object. Bug: 967156 Change-Id: I58228facb54e9afc87215d68176f473121121db4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1681891 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by:Erik Luo <luoe@chromium.org> Cr-Commit-Position: refs/heads/master@{#706474}
Showing
Please register or sign in to comment