New issue
Advanced search Search tips

Issue 815089 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Text selection in inert subtree is not cleared by clicking on non-text in dialog/fullscreen

Project Member Reported by foolip@chromium.org, Feb 23 2018

Issue description

Originally reported in issue 807584, here condensed to describe the same problem for <dialog> and Fullscreen.

The original problem existed for <dialog>, and was introduced for Fullscreen with https://chromium.googlesource.com/chromium/src/+/b078ac342807ec59b7b994d8e59145d698337e72. The issue is that if some text is selected, and that part of the tree is made intert by not being inside the modal dialog or not being inside the fullscreen element, then if one interacts with stuff inside the dialog/fullscreen element, the selection in the inert tree isn't necessarily dismissed.

https://software.hixie.ch/utilities/js/live-dom-viewer/saved/5802 is a simple demo demonstrating this for <dialog>. Note how interacting with the *text* inside the open dialog dismissed the selection, but clicking the image does not. Clicking in the on the gray overlay outside of the dialog also dismisses the selection.

This isn't spec'd anywhere, but a sensible behavior would be that inertness due to dialog and Fullscreen have no effect on text selection, that the selection is dismissed in exactly the same situation as if nothing were inert.
 

Comment 1 by e...@chromium.org, Feb 26 2018

Components: -Blink>HTML>Dialog -Blink>Fullscreen

Comment 2 by yosin@chromium.org, Mar 1 2018

Status: Available (was: Untriaged)
Step to reproduce

1. Visit https://software.hixie.ch/utilities/js/live-dom-viewer/saved/5802 
2. Select something in the page
3. Click button to show dialog
4. Select text in dialog box

Actual result:
The page has grayed selected text.

Expected result:
No grayed selection in the page.



cr815089.png
80.3 KB View Download

Sign in to add a comment