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)
Firefox
General
Tracking
()
People
(Reporter: stef, Assigned: bgrins)
References
Details
(Whiteboard: [fxprivacy])
Attachments
(7 files)
13.02 KB,
image/png
|
Details | |
87.37 KB,
image/png
|
Details | |
40 bytes,
text/x-review-board-request
|
Paolo
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details |
286.13 KB,
image/png
|
Details | |
370.94 KB,
image/png
|
Details | |
375.43 KB,
image/png
|
Details | |
398.19 KB,
image/png
|
Details |
No description provided.
Comment 1•9 years ago
|
||
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.
Comment 2•9 years ago
|
||
I can't reproduce to get site permissions to show up in the control center, can you guys help with some STR?
Comment 3•9 years ago
|
||
(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.
Comment 4•9 years ago
|
||
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".
Reporter | ||
Comment 5•9 years ago
|
||
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.
Updated•9 years ago
|
Version: 41 Branch → Trunk
Updated•9 years ago
|
Summary: Control center badly cut off in latest 41 beta → Control center cut off in localized build for sites with non default permissions
Comment 6•9 years ago
|
||
Tracking for 43. Nomming for 41 tracking as well.
status-firefox41:
--- → affected
status-firefox42:
--- → ?
status-firefox43:
--- → affected
status-firefox44:
--- → ?
tracking-firefox41:
--- → ?
tracking-firefox42:
--- → ?
tracking-firefox43:
--- → +
Updated•9 years ago
|
Whiteboard: [fxprivacy][triage]
Updated•9 years ago
|
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [fxprivacy][triage] → [fxprivacy]
Assignee | ||
Comment 7•9 years ago
|
||
Bug 1206916 - Crop permissions labels if there isn't enough space in the Control Center;r=paolo
Attachment #8665604 -
Flags: review?(paolo.mozmail)
Assignee | ||
Comment 8•9 years ago
|
||
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?
Updated•9 years ago
|
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Iteration: --- → 44.1 - Oct 5
Comment 9•9 years ago
|
||
(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.
Comment 10•9 years ago
|
||
(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.
Updated•9 years ago
|
Attachment #8665604 -
Flags: review?(paolo.mozmail)
Comment 11•9 years ago
|
||
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 12•9 years ago
|
||
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+
Comment 13•9 years ago
|
||
Hi Brian, should this bug be marked for QE verification?
Flags: needinfo?(bgrinstead)
Assignee | ||
Comment 14•9 years ago
|
||
(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)
Assignee | ||
Updated•9 years ago
|
Flags: qe-verify? → qe-verify+
Comment 15•9 years ago
|
||
(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.
Assignee | ||
Comment 16•9 years ago
|
||
(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
Assignee | ||
Comment 17•9 years ago
|
||
(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.
Assignee | ||
Comment 18•9 years ago
|
||
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.
Comment 19•9 years ago
|
||
(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…".
Assignee | ||
Comment 20•9 years ago
|
||
(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)
Assignee | ||
Comment 21•9 years ago
|
||
With sizetopopup="none" on the dropdown so the popup resizes to fit the contents of the dropdown
Assignee | ||
Comment 22•9 years ago
|
||
Using label.textContent to cause long labels to wrap. Ash, :flod, what do you think?
Flags: needinfo?(francesco.lodolo)
Comment 23•9 years ago
|
||
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)
Assignee | ||
Comment 24•9 years ago
|
||
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
Comment 25•9 years ago
|
||
(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).
Assignee | ||
Updated•9 years ago
|
Attachment #8665604 -
Flags: review+ → review?(paolo.mozmail)
Comment 27•9 years ago
|
||
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+
Comment 28•9 years ago
|
||
Allow
https://transvision.mozfr.org/string/?entity=browser/chrome/browser/sitePermissions.properties:allow&repo=aurora
Allow for session
https://transvision.mozfr.org/string/?entity=browser/chrome/browser/sitePermissions.properties:allowForSession&repo=aurora
Block
https://transvision.mozfr.org/string/?entity=browser/chrome/browser/sitePermissions.properties:block&repo=aurora
Assignee | ||
Comment 29•9 years ago
|
||
Assignee | ||
Comment 30•9 years ago
|
||
(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.
Comment 32•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Updated•9 years ago
|
QA Contact: petruta.rasa
Comment 33•9 years ago
|
||
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.
Assignee | ||
Comment 34•9 years ago
|
||
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?
Assignee | ||
Comment 35•9 years ago
|
||
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?
Comment 36•9 years ago
|
||
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+
Comment 37•9 years ago
|
||
Comment 38•9 years ago
|
||
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)
Comment 39•9 years ago
|
||
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.
Reporter | ||
Comment 40•9 years ago
|
||
(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
Assignee | ||
Comment 41•9 years ago
|
||
Try push on beta after a rebase: https://treeherder.mozilla.org/#/jobs?repo=try&revision=dd874211ecbb
Assignee | ||
Comment 42•9 years ago
|
||
Flags: needinfo?(bgrinstead)
Comment 43•9 years ago
|
||
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.
Comment 44•9 years ago
|
||
Verified as fixed on 43.0a2 l10n 2015-10-09.
You need to log in
before you can comment on or make changes to this bug.
Description
•