Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect popover invokers on root instead of document
See this HTML spec PR: whatwg/html#8993 It points out that it would be better to look within `root` rather than `document` for invokers. Otherwise this use case will be broken: <div> <template shadowrootmode=open> <button popovertarget=p1>Click</button> <div popover id=p1>Popover 1 <button popovertarget=p2>Click</button> </div> <div popover id=p2>Popover 2 (I'm not detected as a being related to p1)</div> </template> </div> I.e. nested popovers entirely within a shadow tree. This CL fixes that behavior and adds a test. Bug: 1307772 Change-Id: I28521ec1008d43994ca738c5673da3b704d7ba9c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4335444 Auto-Submit: Mason Freed <masonf@chromium.org> Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1118671}
- Loading branch information
Mason Freed
authored and
Chromium LUCI CQ
committed
Mar 17, 2023
1 parent
be795e5
commit ad83a39
Showing
7 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters