New issue
Advanced search Search tips

Issue 633367 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 625332



Sign in to add a comment

MD Settings: blank dialog stuck open on Chrome OS

Project Member Reported by michae...@chromium.org, Aug 1 2016

Issue description

In ToT, visiting chrome://md-settings/advanced on Chrome OS on Linux shows a blank dialog overlaid on the Bluetooth section. Inspector shows it's the bluetooth-device-dialog.

The dialog has an "x" button and a grey line. The "x" button triggers:
"Uncaught InvalidStateError: Failed to execute 'close' on 'HTMLDialogElement': The element does not have an 'open' attribute, and therefore cannot be closed.", source: chrome://resources/cr_elements/cr_dialog/cr_dialog.js (20)


 
dialog.png
169 KB View Download
Looking...
Blocking: 625332
Status: Assigned (was: Untriaged)
Found the problem, but not the fix yet. It is a CSS specificity issue (see attachement).

The dialog should have display:none because of the "dialog:not([open])" CSS selector, but the "html /deep/ ..." selector is applying display: flex instead.
display_override.png
46.8 KB View Download
I am guessing that is because of this html:

    <dialog is="cr-dialog" id="dialog" class="layout vertical"
        on-cancel="onDialogCanceled_">

I can insert an inner div instead. I didn't think that 'display' might be used to hide the dialog.

Actually, an inner div isn't needed, the layout is leftover from the pre cr-dialog implementation. The fix is trivial.

Project Member

Comment 8 by bugdroid1@chromium.org, Aug 2 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/51163149b8acd7e0519dba287946a480a92df844

commit 51163149b8acd7e0519dba287946a480a92df844
Author: dpapad <dpapad@chromium.org>
Date: Tue Aug 02 00:40:12 2016

MD Settings: Restore display: none for Bluetooth dialog.

BUG= 633367 
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2205683002
Cr-Commit-Position: refs/heads/master@{#409104}

[modify] https://crrev.com/51163149b8acd7e0519dba287946a480a92df844/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.html

Status: Fixed (was: Assigned)
Labels: VerifyIn-54
Labels: VerifyIn-55
Status: Verified (was: Fixed)
Verified on ChromeOS 8872.18.0, 55.0.2883.20

No blank dialog is seen on Bluetooth section

Sign in to add a comment