Please take a look.
Thank you!
haraken@ for bindings/
masonf@ for core/dom/
assert_equals: Target should not have been cleared expected Element node <trala></trala> but got null
This test was already failing regardless of this CL.
This CL improved the test anyway so that some parts now pass, which changed the points of failure.
Therefore, I simply updated the expected.txt.
I'll fix this test in follow-up patch.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LGTM!
bool invocation_target_in_shadow_tree_ : 1;
nit: move this up next to the other `bool`s, so it packs into a word.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
nit: move this up next to the other `bool`s, so it packs into a word.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
haraken@ for bindings/
Gentle ping on this CL!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Make invocationTargetInShadowTree determined before listener invocation
According to spec[1], invocationTargetInShadowTree should be determined
before calling the listener and then used during the invoke step[2].
Chrome does not comply with the spec. Instead, it uses
IsInShadowTree() to check whether the event is inside a shadow tree,
and this check is performed during the invoke step.
But this does not behave correctly when a node moves during the
listener call, as the shadow tree check is performed based on the moved
node.
So, this patch fixes the bug by saving invocationTargetInShadowTree
before calling the listener and using it.
[1] https://dom.spec.whatwg.org/#concept-event-path-append
[2] https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |