| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
await this.nodeInternal.getSubtree(100, true);for understanding: would it only expand up to 100 levels deep? can we still expand the whole subtree but perhaps by doing multiple getSubtree calls?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
await this.nodeInternal.getSubtree(100, true);for understanding: would it only expand up to 100 levels deep? can we still expand the whole subtree but perhaps by doing multiple getSubtree calls?
It expands the whole subtree, since the actual expansion is implemented just by way of expand: https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/legacy/Treeoutline.ts;drc=35d26d364efb57d0386b98312ba739f7f65ae97e;l=1070
This means that we'll fetch the node contents for up to 100 children en bloc, and one by one for the following ones.
Nonetheless the fix is still somewhat best effort. if the nodes have a non-trivial amount of attributes we may still exceed cbor limits and get the same crash. What we really need is a way to cleanly drop notifications if possible. In this instance that would work but not generally.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
await this.nodeInternal.getSubtree(100, true);Philip Pfaffefor understanding: would it only expand up to 100 levels deep? can we still expand the whole subtree but perhaps by doing multiple getSubtree calls?
It expands the whole subtree, since the actual expansion is implemented just by way of expand: https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/legacy/Treeoutline.ts;drc=35d26d364efb57d0386b98312ba739f7f65ae97e;l=1070
This means that we'll fetch the node contents for up to 100 children en bloc, and one by one for the following ones.
Nonetheless the fix is still somewhat best effort. if the nodes have a non-trivial amount of attributes we may still exceed cbor limits and get the same crash. What we really need is a way to cleanly drop notifications if possible. In this instance that would work but not generally.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Avoid fetching infinite DOM subtrees to prevent crashing
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |