Web modals don't bounce when clicking out of the modal window. |
||||||||
Issue descriptionWhen we click on the parts of UI that window modal (e.g. extension uninstall dialog) or system modal (e.g. javascript alert) dialog boxes filter out, we get a bounce animation informing users that they cannot click on those parts while the modal dialog is open. This is also the intended behavior for web modals (i.e. MODAL_TYPE_CHILD, e.g. "Cast..." or print dialogs), as it seems from the code in window_modality_controller.cc. However, we don't get the animation for web modals. This happens in all platforms (ChromeOS, Linux, ...) and is not a mus+ash specific bug.
,
May 10 2017
,
Jun 19 2017
,
Jul 24 2017
,
Aug 18 2017
So when we do the naive thing and not key setting params.child on MODAL_TYPE_CHILD (per #1), we break a whole bunch of tests. For example, PrintPreviewDialogControllerUnitTest.GetOrCreatePreviewDialog. I'm able to bring up the dialog just fine, but it is crashing in the unit tests. This may have something to do with not having a root window?
,
Aug 18 2017
It seems like purely a problem with tests. NativeWidgetAura::InitNativeWidget() tries to get the root window when doing anything other than simple direct child attachment. At least all tests that invoke DialogTestBrowserWindow don't have a RootWindow; comments in the constructor calls out that it's tricky to get one. So fixing the actual bug here is a one liner, but fixing the tests to work afterwards...
,
Aug 21 2017
The problem runs deeper than this. The code in window_modality_controller.cc relies on walking across transient children. So the first attempt at fixing is to just ensure that params.child isn't set when building a web modal dialog in DialogDelegate. Some tests break, but if I go ahead and fix the tests by threading a GetContext() to the dialog, all the tests pass. Great. But there are no tests for dialog location, and in all chromeos, these dialogs are mispositioned. It looks like a location/root_location problem again.
,
Aug 22 2017
This isn't mus specific, and has been broken without comment for almost a year and a half. It's also really difficult to fix due to a bunch of assumptions in the dialog handling code. If anyone wants to take this, go ahead. This sits at the bottom of my queue.
,
Sep 12 2017
,
Nov 21 2017
,
Nov 22
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by moshayedi@chromium.org
, Apr 11 2017