[Webkit-unassigned] [Bug 123516] Web Inspector: Moving an element while in the DOMNodeRemoved handler will hide it in the inspector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 30 14:01:36 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=123516





--- Comment #5 from Alexandru Chiculita <achicu at adobe.com>  2013-10-30 14:00:21 PST ---
(In reply to comment #4)
> Nice catch!

The problem is that the API will send two removal notifications for the same node. The first one will "unbind" it, so the second one will just have a nodeId === 0.

I guess we need to fix both the API and the JS side as the inspector should be backwards compatible.

Blink seems to have the same issue, just that their JS will recover from the error. The next message will just reinsert #final_container and all its children, so the #element gets fixed.

The content flow API I've just added has the same issue. It sends a nodeId === 0 when the node is removed from the DOM. That's because the node is unbound first and then the new API will just fallback to nodeId === 0.

I've just filed another one related to iframes. Nothing to do with the inspector. https://bugs.webkit.org/show_bug.cgi?id=123529

It all seems to be related to the fact that the node removal notification comes before related JS events execute. The C++ after it will abort the removal if the node has changed the parent, but, there are a couple of things that still happen anyway. For example frames are disconnected even though the element was just moved somewhere else.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list