Bug 106534
Summary: | HitTestRequest with allowsShadowContent() = false cannot prohibit shadow content correctly. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Shinya Kawanaka <shinyak> |
Component: | DOM | Assignee: | Web Components Team <webcomponents-bugzilla> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | hayato, webcomponents-bugzilla |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 91821 |
Shinya Kawanaka
Node::shadowAncestorNode() is deprecated. We would like to convert shadowAncestorNode to shadowHost().
Also, maybe HitTest contains some bug when it's used in nested ShadowDOM. We have to investigate and fix it.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Shinya Kawanaka
Since it uses shadowAncestorNode() only once, if it's used in nested Shadow DOM, it might expose ShadowDOM element.
Maybe using Document::nodesFromRect() can reproduce this bug easily.
Shinya Kawanaka
Document::nodesFromRect() is easy to use, but in future, it might return only light nodes (since it's Document method).
Maybe it's safe to have a new method in Internals.
Shinya Kawanaka
By the way, this bug will affect the result of hit test for touch gestures, as far as I see.
Hayato Ito
I think I've fixed the HitTests for gesture events.
Please feel free to reopen this if you have a HitTest to be fixed further.