Closed Bug 1779695 Opened 2 years ago Closed 2 years ago

Add bookmark overlay is broken with long localized descriptions

Categories

(Firefox :: Bookmarks & History, defect, P3)

defect

Tracking

()

VERIFIED FIXED
108 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- wontfix
firefox103 --- wontfix
firefox104 --- wontfix
firefox105 --- wontfix
firefox106 --- wontfix
firefox107 --- wontfix
firefox108 --- verified

People

(Reporter: flod, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [snt-scrubbed][places-regression])

Attachments

(5 files)

Attached image Screenshot overlay

The window is quite broken on the Italian build, apparently because of a long description that doesn't wrap.

The problem is present on release, so it's been there for a while (possibly since bug 1693139?).

I could reproduce this a few days ago, now I can't anymore.
I'm sure when proton was implemented it was ok, so it may actually be a regression or somehow intermittent.

I will try in mozregression and fresh profile.

Flags: needinfo?(mak)

I cannot reproduce with a clean profile, but I have some ideas about what this may be.
We clone this dialog here https://searchfox.org/mozilla-central/rev/7b9d23ece4835bf355e5195f30fef942d376a1c7/browser/components/places/PlacesUIUtils.sys.mjs#511-513 to allow having 2 different sizes for it, depending on whether the dialog is resizable or not (that depends on whether it contains the folder picker or not). The size of the dialog is then stored in XULStore for future reopenings of the same dialog.
That means the size can easily go otu of control, if for example we change that text or the localization.

I think we should allow the hint to wrap, to avoid the problem.

Severity: -- → S4
Flags: needinfo?(mak)
Priority: -- → P3

This can easily be reproduce using the Add bookmark for this tab context menu entry on a tab, with a localized version, like the Italian one.

Bug 1760637 is likely culprit, we probably calculate the dialog size before showing the tags field, due to awaits added in https://hg.mozilla.org/mozilla-central/rev/4e81d3826042#l3.55 and https://hg.mozilla.org/mozilla-central/rev/4e81d3826042#l3.77

I still think it would make sense to wrap the text, but we should also see if we can refactor the code to do all the showing/hiding before any await.

Keywords: regression
Regressed by: 1760637

Set release status flags based on info from the regressing bug 1760637

:jteow, since you are the author of the regressor, bug 1760637, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(jteow)
Severity: S4 → S3
Whiteboard: [snt-scrubbed][places-regression]

I'm moderately sure this shouldn't be a problem anymore, see bug 1793355.

Flags: needinfo?(francesco.lodolo)

Not only it's still there, it got much worse :-(

Flags: needinfo?(francesco.lodolo)
Attached image Nightly 108

Nightly 108.0a1 20221018094831

I'm confused, I used the Windows installer for nightly in italian and I see a working menu. Is it intermittent or something?

Flags: needinfo?(francesco.lodolo)

It's not intermittent for me on macOS, and it happens on two different machines at this point. I can also reproduce on a clean profile.

I'm still getting the slightly larger size on this MBPRO14 connected to an external 27" display, the dialog above is from a MBPRO13's integrated display.

Also, just to be clear: this is the dialog you get from the context menu on a tab.

Flags: needinfo?(francesco.lodolo)

Ah, I can repro with this and see why this is:

diff --git a/browser/locales/en-US/browser/editBookmarkOverlay.ftl b/browser/locales/en-US/browser/editBookmarkOverlay.ftl
--- a/browser/locales/en-US/browser/editBookmarkOverlay.ftl
+++ b/browser/locales/en-US/browser/editBookmarkOverlay.ftl
@@ -39,11 +39,11 @@ bookmark-overlay-tags-expander =
   .tooltiptext = Show all tags
   .tooltiptextdown = { bookmark-overlay-tags-expander.tooltiptext }
   .tooltiptextup = Hide

 bookmark-overlay-keyword-2 =
   .value = Keyword
   .accesskey = K

-bookmark-overlay-tags-caption-label = Use tags to organize and search for bookmarks from the address bar
+bookmark-overlay-tags-caption-label = Use tags to organize and search for bookmarks from the address bar Use tags to organize and search for bookmarks from the address bar Use tags to organize and search for bookmarks from the address b

 bookmark-overlay-keyword-caption-label-2 = Use a single keyword to open bookmarks directly from the address bar

The issue is that the overlay-tags-caption-label is dynamically uncollapsed, so its size isn't accounted for when sizing the dialog.

This fixes the edit bookmarks dialog by properly allowing stuff to wrap once
the dialog width has been fixed.

Let's try to do this and opt-out any specific pages that may hit issues,
rather than opting-in one by one, now that's early in the cycle?

Assignee: nobody → emilio
Status: NEW → ASSIGNED

This fixes the bug even without the other patch, making sure that
mozSubdialogReady awaits for the panel init code to run.

And move the rule in the previous patch from places.css to there.

Depends on D159690

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c828a3491696 Use modern flex on in-content pages. r=Gijs,dao

Backed out for causing bc failures on browser_connection_dnsoverhttps.js

Backout link

Push with failures

Failure log

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6c6037523786 Use modern flex on in-content pages. r=Gijs,dao,preferences-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit auto_nag documentation.

Dialog is displayed correctly on 108.0a1, Build ID 20221020215126

Status: RESOLVED → VERIFIED
Flags: needinfo?(jteow)

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox107 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

The patch as-is can't be uplifted, it's too risky. But we need to figure out something for bug 1795901 and I might be able to create a targeted fix.

Flags: needinfo?(emilio)
See Also: → 1795901

Bug 1760637 landed in 102, and the dialog is indeed broken in ESR.

At this point, waiting for 108 might not be a problem, also considering I haven't seen a single duplicate of this bug.

Regressions: 1796915
Regressions: 1797313
Regressions: 1797345
Regressions: 1798111
Duplicate of this bug: 1799613
Duplicate of this bug: 1799030
No longer duplicate of this bug: 1799613
Regressions: 1800828
Regressions: 1800747

Reproduced the issue Nightly 105.0a1 using the Italian localization build.
Verified - Fixed in Beta 108.0b3 and the latest Nightly 109.0a1 (2022-11-18) on Windows 10, macOS 12 and Ubuntu 20.

Flags: qe-verify+
Regressions: 1802701
Regressions: 1807646
Regressions: 1807975
No longer regressions: 1807975
Regressions: 1881852
No longer regressions: 1881852
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: