Vertical gap below userScripts opt-in warning message in add-on prompt on macOS
Categories
(Toolkit :: UI Widgets, defect, P3)
Tracking
()
People
(Reporter: acornestean, Assigned: robwu)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [addons-jira])
Attachments
(3 files)
Affected versions:
- Nightly 135.0a1 (135.0a1/20241222210617)
Affected platforms:
- macOS
Description:
The userScripts warning message in the add-on prompt has a vertical gap below the message string on macOS. The issue does not occur on Windows or Linux. See attached screenshot for more details.
Preconditions:
- Set
extensions.userScripts.mv3.enabled
totrue
in about:config and restart the browser
Steps to reproduce:
- Load the User Scripts Manager extension attached in https://mozilla-hub.atlassian.net/browse/WEBEXT-2024 via about:debugging
- Go to about:addons, click on the add-on card to access its’ detailed view and then click on the “Preferences” tab
- Click on the “Grant access to userScripts API” button to trigger the additional permissions request prompt
- Notice the vertical gap below the warning message in the prompt
Expected results:
The extra gap below the warning message in the prompt should be removed.
Actual results:
There is a vertical gap below the warning message in the prompt.
Assignee | ||
Comment 1•2 months ago
|
||
The "User Scripts Manager extension" from the STR is a zip file with the contents of the userScripts-mv3 directory from https://github.com/mdn/webextensions-examples/pull/576. To reproduce, clone the repo and select userScripts-mv3/manifest.json
from that directory.
This is an issue with the underlying moz-message-bar component. I'll update this report and move it to the right Bugzilla location once I have finished my write-up.
Assignee | ||
Comment 2•2 months ago
|
||
This issue is independent of the prompt. I can also reproduce it with the warning message displayed in about:addons
. To test, after running step 1 of the STR, visit about:addons
and go to the Permissions tab. Then open the devtools and run the following snippet:
document.querySelector("moz-message-bar[type='warning']").shadowRoot.querySelector('.message').textContent = 'l'.repeat(150)+'i'.repeat(152)
Tweak the numbers in the end as needed to get the text to reach the end of the line.
Even independently of the browser, try this STR:
- Visit https://firefoxux.github.io/firefox-desktop-components/?path=/story/ui-widgets-message-bar--default&args=type:warning
- Set "Change size of viewport" in the top bar to "Tablet" (mainly to get a fixed size).
- In the Fluent tab, set the content of
moz-message-bar-message
to:
.message = lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllliiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
- Append one more letter to step 3's input field, e.g. "i".
Expected:
- step 3 and step 4 should yield the same sizes.
Actual:
- with step 4, a vertical gap appears below the message.
This appears to be a regression of bug 1848012, which added margin-inline-end
to .message
: https://searchfox.org/mozilla-central/rev/21710237a214fdb72d0799c297da4fb9b60ccff9/toolkit/content/widgets/moz-message-bar/moz-message-bar.css#104-106
The margin-inline-end
property should not be there (be zero) if support-link is not used in the moz-message-bar.
Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
Comment 4•2 months ago
|
||
Set release status flags based on info from the regressing bug 1848012
Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 7•1 month ago
|
||
The patch landed in nightly and beta is affected.
:robwu, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox135
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 8•1 month ago
|
||
The patch is not risky to uplift, so if there is anything else on ESR128 affected by this, I would recommend uplifting.
For other recent releases I don't bother - the UI where this issue was found is currently not enabled by default yet.
Reporter | ||
Comment 9•1 month ago
|
||
Verified as Fixed. Tested on the latest Nightly (136.0a1/20250108215653) on macOS 11.3.1.
The vertical gap below the warning message in the prompt is no longer present, confirming the fix. See the attached screenshot for more details.
Reporter | ||
Comment 10•1 month ago
|
||
Updated•23 days ago
|
Description
•