Alert/prompt/confirm dialogue text missing in responsive design mode
Categories
(DevTools :: Responsive Design Mode, defect, P2)
Tracking
(firefox-esr128 verified, firefox131 wontfix, firefox132 verified, firefox133 verified)
People
(Reporter: matthew.french, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
|
1.23 MB,
image/png
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr128+
|
Details | Review |
Steps to reproduce:
Testing a confirm dialogue in responsive design mode (iPhone 11 Pro iOs 14.6, for example).
Actual results:
The text of the dialogue is not displayed.
Expected results:
The text of the dialogue should be displayed as it is on desktop (non responsive design mode).
Comment 1•1 year ago
|
||
The severity field is not set for this bug.
:Sylvestre, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Seems to work on 115, recent regression.
Nicolas, can you run mozregression, thanks!
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
This was regressed by Bug 1897095
| Assignee | ||
Comment 4•1 year ago
|
||
There's now an extra margin-top which pushed the dialog content down https://searchfox.org/mozilla-release/rev/bad2bcb1b74cce00563fde8aab67ae924befe3c2/devtools/client/responsive/responsive-browser.css#21,34-37
.browserContainer.responsive-mode > .rdm-toolbar {
...
+ .browserStack > .dialogStack > .dialogTemplate > .dialogBox {
margin-top: var(--rdm-toolbar-height);
}
}
removing the declaration makes the dialog text appear
Comment 5•1 year ago
|
||
Set release status flags based on info from the regressing bug 1897095
:niklas, since you are the author of the regressor, bug 1897095, could you take a look?
For more information, please visit BugBot documentation.
Comment 6•1 year ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #4)
There's now an extra
margin-topwhich pushed the dialog content down https://searchfox.org/mozilla-release/rev/bad2bcb1b74cce00563fde8aab67ae924befe3c2/devtools/client/responsive/responsive-browser.css#21,34-37.browserContainer.responsive-mode > .rdm-toolbar { ... + .browserStack > .dialogStack > .dialogTemplate > .dialogBox { margin-top: var(--rdm-toolbar-height); } }removing the declaration makes the dialog text appear
Maybe we could update the query to not apply when we have the sizeto="limitheight" attribute?
something like .dialogBox:not([sizeto='limitheight'])?
| Assignee | ||
Comment 7•1 year ago
|
||
(In reply to Niklas Baumgardner [:niklas] from comment #6)
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #4)
There's now an extra
margin-topwhich pushed the dialog content down https://searchfox.org/mozilla-release/rev/bad2bcb1b74cce00563fde8aab67ae924befe3c2/devtools/client/responsive/responsive-browser.css#21,34-37.browserContainer.responsive-mode > .rdm-toolbar { ... + .browserStack > .dialogStack > .dialogTemplate > .dialogBox { margin-top: var(--rdm-toolbar-height); } }removing the declaration makes the dialog text appear
Maybe we could update the query to not apply when we have the
sizeto="limitheight"attribute?something like
.dialogBox:not([sizeto='limitheight'])?
or maybe discriminate on the dialogStack element? for example & + .browserStack > .dialogStack:not(.content-prompt-dialog) > .dialogTemplate > .dialogBox as .content-prompt-dialog is the class where we decide to center the children on the grid, which means we don't need the top margin? Using sizeto seems risky as we could have an item that wouldn't be set in the center but needs to have a limited height, and would still do need the top margin. Not sure what can happen, so I'm happy to go with your suggestion if you think it makes more sense
| Assignee | ||
Comment 8•1 year ago
|
||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 11•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D224448
Updated•1 year ago
|
| Assignee | ||
Comment 12•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D224448
Updated•1 year ago
|
Comment 13•1 year ago
|
||
beta Uplift Approval Request
- User impact if declined: content for alert/confirm/prompt dialog is hidden when Responsive Design Mode is opened
- Code covered by automated testing: no
- Fix verified in Nightly: no
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: Open the DevTools console, enable responsive design mode, in the console, evaluate
alert("hello"). In the dialog that opened, check that "hello" is visible - Risk associated with taking this patch: low
- Explanation of risk level: one liner CSS fix only impacting Responsive Design Mode
- String changes made/needed: -
- Is Android affected?: no
Updated•1 year ago
|
Updated•1 year ago
|
Comment 14•1 year ago
|
||
| uplift | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 15•1 year ago
|
||
I can reproduce this issue in Beta v132.0b1 and confirm the fix in Beta v132.0b3 and Nightly v133.0a1. Testing was performed on Windows 10, Ubuntu 22 and MacOS11.
Updated•1 year ago
|
Comment 16•1 year ago
|
||
Comment on attachment 9429031 [details]
Bug 1918617 - [devtools] Don't apply top margin on prompt dialogs when RDM is enabled. r=niklas.
Approved for 128.4esr.
Updated•1 year ago
|
Comment 17•1 year ago
|
||
| uplift | ||
Comment 19•1 year ago
|
||
I can confirm that the fix also works fine in ESR v128.4.0esr. Testing was performed on Windows 10, MacOS 11 and Ubuntu 22.
Description
•