Closed Bug 1206916 Opened 9 years ago Closed 9 years ago

Control center cut off in localized build for sites with non default permissions

Categories

(Firefox :: General, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 44
Iteration:
44.1 - Oct 5
Tracking Status
firefox41 - wontfix
firefox42 - verified
firefox43 + verified
firefox44 --- verified

People

(Reporter: stef, Assigned: bgrins)

References

Details

(Whiteboard: [fxprivacy])

Attachments

(7 files)

Attached image screenshot —
No description provided.
This bug involves also to newer branches or just 41? I've just got a similar report for Italian and Windows, but everything looks fine for me on OS X/Linux and Fx43. I wonder if we can add this to the automated screenshots project.
I can't reproduce to get site permissions to show up in the control center, can you guys help with some STR?
(In reply to Axel Hecht [:Pike] from comment #2) > I can't reproduce to get site permissions to show up in the control center, > can you guys help with some STR? Open about:permissions, search for a website and assign a special permission like allowing pop-ups. Now the website's control center should show the permissions section.
Attached image screenshot.png —
It's also worth noting that it breaks depending on the permission. For Italian it breaks with "Enter Fullscreen", which has been removed after 41, and "Offline Data Storage".
Oh, I have cookies set to expire on closing browser and added exception for the screenshoted site. I thought it was something new on 41 but now I don't know. I can also reproduce it on 43.
Version: 41 Branch → Trunk
Summary: Control center badly cut off in latest 41 beta → Control center cut off in localized build for sites with non default permissions
Tracking for 43. Nomming for 41 tracking as well.
Whiteboard: [fxprivacy][triage]
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [fxprivacy][triage] → [fxprivacy]
Blocks: 1188565
Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo
Attachment #8665604 - Flags: review?(paolo.mozmail)
Paolo, I tested locally with some artificially long permission names and this seems to do the trick. Can you check and see what you think?
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Iteration: --- → 44.1 - Oct 5
(In reply to Brian Grinstead [:bgrins] from comment #8) > Paolo, I tested locally with some artificially long permission names and > this seems to do the trick. Can you check and see what you think? Can you attach a screenshot of the result? If crop means that we're cutting off text, at the risk of making it even less understandable, it doesn't sound like a great improvement.
(In reply to Brian Grinstead [:bgrins] from comment #8) > Paolo, I tested locally with some artificially long permission names and > this seems to do the trick. Can you check and see what you think? Not great, but solves the most important usability issue with the security subview access button not being visible. We should probably file a separate bug with a description of the truncated strings issue, since this is not the final state we want. We'll most probably end up handling that bug as part of the redesign of the permissions view in the main panel.
Attachment #8665604 - Flags: review?(paolo.mozmail)
Comment on attachment 8665604 [details] MozReview Request: Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo https://reviewboard.mozilla.org/r/20255/#review18297
Comment on attachment 8665604 [details] MozReview Request: Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo https://reviewboard.mozilla.org/r/20255/#review18299
Attachment #8665604 - Flags: review+
Hi Brian, should this bug be marked for QE verification?
Flags: needinfo?(bgrinstead)
Attached image screenshot-it.png —
(In reply to Francesco Lodolo [:flod] from comment #9) > (In reply to Brian Grinstead [:bgrins] from comment #8) > > Paolo, I tested locally with some artificially long permission names and > > this seems to do the trick. Can you check and see what you think? > > Can you attach a screenshot of the result? If crop means that we're cutting > off text, at the risk of making it even less understandable, it doesn't > sound like a great improvement. Here's a screenshot of the Italian strings, including the tooltiptext on one that is cropped.
Flags: needinfo?(bgrinstead)
Flags: qe-verify? → qe-verify+
(In reply to Brian Grinstead [:bgrins] from comment #14) > Here's a screenshot of the Italian strings, including the tooltiptext on one > that is cropped. Thanks for the screenshot. I'll be honest: it's terrible :-\ At least for Italian, an almost usable dialog just became unreadable, the translation just looks made by an amateur. I also have no idea what happens with other locales using even longer translations. If you need to truncate, I think it makes sense to put a limit width to the dropdown lists, and possibly widen the entire dialog. I don't think space is an issue here.
(In reply to Francesco Lodolo [:flod] from comment #15) > If you need to truncate, I think it makes sense to put a limit width to the > dropdown lists, and possibly widen the entire dialog. I don't think space is > an issue here. From what I understand we don't have localizable widths for the entire dialog, so we wouldn't be able to uplift a change to that (unless if you are suggesting we universally increase the size). We can try decreasing the capping the dropdown width also
(In reply to Francesco Lodolo [:flod] from comment #15) > (In reply to Brian Grinstead [:bgrins] from comment #14) > > Here's a screenshot of the Italian strings, including the tooltiptext on one > > that is cropped. > > Thanks for the screenshot. I'll be honest: it's terrible :-\ > > At least for Italian, an almost usable dialog just became unreadable, the > translation just looks made by an amateur. I also have no idea what happens > with other locales using even longer translations. I wouldn't consider the current behavior almost usable - in addition to looking broken, the user is unable to view to important security information about the page they are on.
Attached image capped-dropdown-width.png —
Would still need to figure out how to get the menu popup to become large enough to show the longer items when opened (the popup currently clips the items). This dropdown is going away as part of Bug 1188355 to something like: https://mozilla.invisionapp.com/share/DM3XGA6YE#/screens/100404627.
(In reply to Brian Grinstead [:bgrins] from comment #16) > From what I understand we don't have localizable widths for the entire > dialog, so we wouldn't be able to uplift a change to that (unless if you are > suggesting we universally increase the size). Increasing the width for all locales is what I'm suggesting. I'm not saying to double it, just to give l10n a little more breath. (In reply to Brian Grinstead [:bgrins] from comment #17) > I wouldn't consider the current behavior almost usable - in addition to > looking broken, the user is unable to view to important security information > about the page they are on. Let's agree on disagreeing. The current one looks broken indeed, that's why this bug was filed, but it's still usable. But how would you feel in having more than half of the labels truncated in English, to the point they're almost not understandable? Like "Allow c…".
(In reply to Francesco Lodolo [:flod] from comment #19) > (In reply to Brian Grinstead [:bgrins] from comment #16) > > From what I understand we don't have localizable widths for the entire > > dialog, so we wouldn't be able to uplift a change to that (unless if you are > > suggesting we universally increase the size). > > Increasing the width for all locales is what I'm suggesting. I'm not saying > to double it, just to give l10n a little more breath. Ash, what do you think about increasing the width of the control center popup?
Flags: needinfo?(agrigas)
With sizetopopup="none" on the dropdown so the popup resizes to fit the contents of the dropdown
Using label.textContent to cause long labels to wrap. Ash, :flod, what do you think?
Flags: needinfo?(francesco.lodolo)
Comment on attachment 8666088 [details] using-textcontent-with-wrapping.png It looks fine to me, it would look even clearer with the label's top aligned with its dropdown list (instead of vertically centered), but I have no idea if that's possible and this is already a huge improvement.
Flags: needinfo?(francesco.lodolo)
Comment on attachment 8665604 [details] MozReview Request: Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo
(In reply to Brian Grinstead [:bgrins] from comment #22) > Created attachment 8666088 [details] > using-textcontent-with-wrapping.png > > Using label.textContent to cause long labels to wrap. Ash, :flod, what do > you think? Sorry thought I replied - this looks a lot better. Only small thing would be add a little extra padding under the rows that have to wrap so that there is consistent spacing between each full row regardless of # of lines.
Flags: needinfo?(agrigas)
While this is a valid issue, based on the fact that this is limited to a very few locales and that the fix is not ready, this is now a wontfix for 41 and will not be included in the proposed dot release (41.0.1).
Attachment #8665604 - Flags: review+ → review?(paolo.mozmail)
Comment on attachment 8665604 [details] MozReview Request: Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo Code looks good, my only concern is that if we don't let the dropdown expand, in some locales the options may become undistinguishable if they start with the same word. Can you check in the l10n repositiory if there are any suspect cases? You may want to choose a dropdown width that at least allows the options to be distinguishable.
Attachment #8665604 - Flags: review?(paolo.mozmail) → review+
(In reply to :Paolo Amadini from comment #27) > Comment on attachment 8665604 [details] > MozReview Request: Bug 1206916 - Crop permissions labels if there isn't > enough space in the Control Center;r=paolo > > Code looks good, my only concern is that if we don't let the dropdown > expand, in some locales the options may become undistinguishable if they > start with the same word. With this patch, we are allowing the dropdown to expand to the full width of the selected value (as in https://bug1206916.bmoattachments.org/attachment.cgi?id=8666088). Then the sizetopopup="none" allows the popup itself to become as large as the largest item in the list. My previous approach (try 2 of 3) was the one put a max-width on the dropdown: https://bug1206916.bmoattachments.org/attachment.cgi?id=8666077, but I moved past that because of the same concern you mention.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
QA Contact: petruta.rasa
Brian, are you going to request uplift for this patch to aurora & beta? Thanks But not tracking as we won't block the release for this bug.
Flags: needinfo?(bgrinstead)
Comment on attachment 8665604 [details] MozReview Request: Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo Approval Request Comment [Feature/regressing bug #]: 885366 - as far as I can tell this would have been an issue ever since the permissions feature in identity popup feature was introduced in FF25, it doesn't seem like the labels were ever cropped. [User impact if declined]: Visual glitch in the control center: https://bug1206916.bmoattachments.org/attachment.cgi?id=8664681. This is worse since the introduction of the subview (FF 41) since it cuts off access to the security subview. [Describe test coverage new/current, TreeHerder]: There's a simple test case to make sure that textContent is being set on the label, which allows long translated strings to wrap [Risks and why]: A change like this could always cause some other XUL layout issues [String/UUID change made/needed]:
Flags: needinfo?(bgrinstead)
Attachment #8665604 - Flags: approval-mozilla-aurora?
Comment on attachment 8665604 [details] MozReview Request: Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo Approval Request Comment [Feature/regressing bug #]: 885366 - as far as I can tell this would have been an issue ever since the permissions feature in identity popup feature was introduced in FF25, it doesn't seem like the labels were ever cropped. [User impact if declined]: Visual glitch in the control center: https://bug1206916.bmoattachments.org/attachment.cgi?id=8664681. This is worse since the introduction of the subview (FF 41) since it cuts off access to the security subview. [Describe test coverage new/current, TreeHerder]: There's a simple test case to make sure that textContent is being set on the label, which allows long translated strings to wrap [Risks and why]: A change like this could always cause some other XUL layout issues [String/UUID change made/needed]:
Attachment #8665604 - Flags: approval-mozilla-beta?
Blocks: 885366
Comment on attachment 8665604 [details] MozReview Request: Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo Visual regression, taking it. Should be in 42 beta 5
Attachment #8665604 - Flags: approval-mozilla-beta?
Attachment #8665604 - Flags: approval-mozilla-beta+
Attachment #8665604 - Flags: approval-mozilla-aurora?
Attachment #8665604 - Flags: approval-mozilla-aurora+
Hi, this cause problems when uplifting to beta like : grafting 304719:218c7f64a425 "Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo" merging browser/base/content/browser.js merging browser/themes/shared/controlcenter/panel.inc.css warning: conflicts during merge. merging browser/themes/shared/controlcenter/panel.inc.css incomplete! (edit conflicts, then use 'hg resolve --mark') abort: unresolved conflicts, can't continue (use hg resolve and hg graft --continue)
Flags: needinfo?(bgrinstead)
Tried to reproduce under Win 7 64-bit using several locales and Fx versions (Fx 42 beta, Aurora 6-7th October) but everything was correctly aligned. I could see the initial issue under Mac OS X 10.9.5 and checked it's fixed with Nightly 44.0a1 2015-10-06 with the following locales: it, pl, ar and fr. I'll continue verifying with other OS's and come back with the results.
(In reply to Petruta Rasa [QA] [:petruta] from comment #39) > Tried to reproduce under Win 7 64-bit using several locales and Fx versions > (Fx 42 beta, Aurora 6-7th October) but everything was correctly aligned. I can still see the problem on 42.0b4 pl and OS X 10.11 > I could see the initial issue under Mac OS X 10.9.5 and checked it's fixed > with Nightly 44.0a1 2015-10-06 with the following locales: it, pl, ar and fr. Yes, seems fixed on 44.0a1 pl 2015-10-06
The initial issue doesn't reproduce with Win 10 64-bit Surface Pro 2 and Linux 14.04 32-bit. I confirm the fix with Firefox 42 beta 5 (locales like pl. sk, es-ES) under Mac OS X 10.9.5. Latest Aurora l10n 2015-10-08 doesn't have the fix. I'm modifying the flag for 44.0a1 too based on above comments.
Status: RESOLVED → VERIFIED
Verified as fixed on 43.0a2 l10n 2015-10-09.
See Also: → 1207619
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: