Closed Bug 1547346 Opened 6 years ago Closed 6 years ago

Delete profile dialog buttons have incorrect text and are cut off

Categories

(Toolkit :: UI Widgets, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: agashlin, Assigned: bgrins)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Attached image delete profile.png

Seen on Windows 10 at 250% DPI scaling in Nightly 20190426094913

This may actually be caused by bug 1538983, I got regression range:

https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=a885e5f28d3141921d9235adfdd0b88552e507a2&tochange=63fcd49131d7303b868a34241024d4a72ed1aafc

and it seems that the cutoff happens at the same time as the button text becomes incorrect.

STR: Go to about:profiles and click Remove for a profile

Component: Widget: Win32 → XUL Widgets
Product: Core → Toolkit
Regressed by: 1538983
Summary: Delete profile dialog buttons are cut off → Delete profile dialog buttons have incorrect text and are cut off
Version: 66 Branch → 68 Branch
Keywords: regression

I can reproduce on OSX as well. Outer HTML on the button shows no [label] attribute:

<xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" dlgtype="extra1" class="dialog-button"><xul:hbox class="box-inherit button-box" align="center" pack="center" flex="1" anonid="button-box"><xul:image class="button-icon"/><xul:label class="button-text"/></xul:hbox></xul:button>

Also, the button that's supposed to say "Don't delete files" is saying "OK" (the default button text).

So I found what looks like a concerning existing bug when testing this. When doing about:profiles -> "Remove" even on a release build it seems like clicking "cancel" or "don't delete files" still seems to delete the profile. If I press escape to close the prompt it goes away without deleting.

Clicking "Cancel" seems to not delete the profiles for me (before or after this bug). Could the dialog be confused about what button is being pressed? Maybe it cancels properly on Windows but not OSX?

(In reply to Adam Gashlin (he/him) [:agashlin] from comment #7)

Clicking "Cancel" seems to not delete the profiles for me (before or after this bug). Could the dialog be confused about what button is being pressed? Maybe it cancels properly on Windows but not OSX?

You are right, I just double checked and Cancel is safe. Can you check if "Don't delete files" deletes the profile anyway?

I checked, "Don't Delete Files" removes the profile from profiles.ini but doesn't delete the profile directory, "Delete Files" removes both, "Cancel" does neither. Though I had to go back to an older version to have the buttons shown correctly (./mach mozregression --repo=inbound --launch=a885e5f28d3141921d9235adfdd0b88552e507a2).

(In reply to Adam Gashlin (he/him) [:agashlin] from comment #9)

I checked, "Don't Delete Files" removes the profile from profiles.ini but doesn't delete the profile directory, "Delete Files" removes both, "Cancel" does neither. Though I had to go back to an older version to have the buttons shown correctly (./mach mozregression --repo=inbound --launch=a885e5f28d3141921d9235adfdd0b88552e507a2).

OK, thanks for checking. I think this was just some confusion on my part. Any chance you can confirm the reported visual issues on windows are fixed with https://phabricator.services.mozilla.com/D29062?

Flags: needinfo?(agashlin)

Looks perfect on Windows, thanks! I tested that each button still does the right thing, as well.

Flags: needinfo?(agashlin)
Pushed by bgrinstead@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/776c731d7c71 Upgrade custom elements in dialog anonymous XBL content before accessing them r=aswan

Comment on attachment 9061097 [details]
Bug 1547346 Don't double-insert inner content when <button> is cloned

Revision D29063 was moved to bug 1547322. Setting attachment 9061097 [details] to obsolete.

Attachment #9061097 - Attachment is obsolete: true
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: