Closed Bug 1873002 Opened 9 months ago Closed 9 months ago

Certificate Manager popup doesn't grow with content

Categories

(Firefox :: Settings UI, defect, P3)

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
123 Branch
Tracking Status
firefox-esr115 --- verified
firefox121 --- wontfix
firefox122 --- verified
firefox123 --- verified

People

(Reporter: eros_uk, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files, 2 obsolete files)

I noticed a little hiccup in the UI.
about:preferences#privacy -> View certificates...
I added a few exceptions and the buttons went off the popup.
I had to close it using the X and then reopen it.

STR

  • Go to: about:preferences#privacy -> View certificates...
  • Click "Add Exceptions..."
  • Add new exceptions
  • New server will be added to the display
  • Repeat
  • The box grows and pushes the buttons out of the picture
Attached image certificate-manager1a.png (obsolete) —
Attachment #9371029 - Attachment is obsolete: true

Is this a regression?

Flags: needinfo?(eros_uk)

(This was previously fixed in bug 1801607...)

I believe setting an overall max-height (30vh should be good) for the inner server box to scroll could be a good approach to the issue.
The regression may not fix all the issues involved.

Flags: needinfo?(eros_uk)
QA Whiteboard: [qa-regression-triage]

(In reply to erosman from comment #6)

I believe setting an overall max-height (30vh should be good)

That means there'll be vertical dead space if users resize the dialog on tall (rotated) screens, so that doesn't seem great to me.

The list should adapt its size to the size of the dialog and scroll when there are too many items to fit in whatever the available space for the list was.

The regression may not fix all the issues involved.

I don't understand this comment. Do you know if this used to work? When did it break? (I don't know of any servers I can use to test this problem with so can't easily find the regression window; hopefully for you it would be trivial to run mozregression)

Flags: needinfo?(eros_uk)

Do you know if this used to work?

I have been adding certificates for 10+ years and it used to be fine.

When did it break?

No idea, but I reported the UI issue very long time ago (cant recall if it was here or on matrix). That is why I said regression to the last change might not solve the issue.

Flags: needinfo?(eros_uk)

I would like to test this issue, investigate whether it is a regression and provide a regression range or close it if it was fixed, however, I need to know what kind of server "locations" I can add as exceptions. Could you help me attempt reproduction? Thanks!

Flags: needinfo?(eros_uk)

however, I need to know what kind of server "locations" I can add as exceptions. Could you help me attempt reproduction?

The reason I regularly have to add exceptions is that the target domain is blocked at my location, therefore I need to use their IP instead. However, the certificate, although valid, lists the domains and not the IP, therefore a mismatch occurs.

To create a list:

  • Make a list of few HTTPS domains
  • Get their IPs
  • Add the IP in the exception dialogue box

Here is an example:

  • https://example.com
  • IP: 93.184.216.34
  • Go to: about:preferences#privacy -> View certificates...
  • Click "Add Exceptions..."
  • Enter https://93.184.216.34/
  • Click "Get Certificate"
  • After it gets the certificate, click "Confirm Security Exception"

Screenshot to follow ...

Flags: needinfo?(eros_uk)

Example with example.com IP

I have investigated for a regressor and the result is: bug 1822578. It appears to be a regression from branch 113.

More information that Mozregression provided:
Bug 1822578 - Make flex="1" on XUL set a zero flex basis like the flex shorthand does. r=Gijs,mconley,settings-reviewers,desktop-theme-reviewers,dao

In a setup with:

<hbox>
<something flex="1"/>
<something-else/>
</hbox>

Before bug 1822131 <something flex="1"> ended up with flex-basis: auto,
but was the only thing able to shrink, so <something-else> stayed the
same size.

After that bug however <something-else> is able to shrink too, so both
elements shrink. This wouldn't happen if flex="1" actually worked like
flex: 1 does.

However flex: 1 causes stuff like explicit main sizes to be
(effectively) ignored, so we need to fix up a few cases where now we'd
start flexing too much. For that, add a debug assert to
nsFlexContainerFrame to catch the would-be behavior changes here.

For the most part they're actually no-op since they're setting tiny
sizes, but preferences and devtools needed a couple real fixes.

The profile selection spacer is useless (zero-size).

Hopefully the last xul.css change I need to do :')

Differential Revision: https://phabricator.services.mozilla.com/D172704

2024-01-11T15:03:06.354000: DEBUG : Did not find a branch, checking all integration branches
2024-01-11T15:03:06.358000: INFO : The bisection is done.
2024-01-11T15:03:06.360000: INFO : Stopped

Regressed by: 1822578
Hardware: Unspecified → Desktop

Emilio, are you able to take a look here?

Flags: needinfo?(emilio)

This would be S2 (breaks functionality, no easy workaround) except I can't imagine many people are using this given it went undiscovered for 8-9 months...

Severity: -- → S3
Priority: -- → P3
Flags: needinfo?(emilio)

This matches the behavior of XUL trees, and also what we did for the
languages listboxes and bug 1860214.

This is enough to fix the bug, but more in-depth fix incoming too.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

This is preferable behavior. Otherwise the behavior changes with
and without scrolling enabled, which is rather weird.

Depends on D198395

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d2f0aa747888 Make the richlistbox contents not grow the richlistbox. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

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-firefox122 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Comment on attachment 9372501 [details]
Bug 1873002 - Make the richlistbox contents not grow the richlistbox. r=Gijs

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • Is this code covered by automated tests?: Unknown
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial CSS fix
  • String changes made/needed: none
  • Is Android affected?: No
Flags: needinfo?(emilio)
Attachment #9372501 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9372501 [details]
Bug 1873002 - Make the richlistbox contents not grow the richlistbox. r=Gijs

Approved for 122.0 RC1

Attachment #9372501 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

:emilio what do you think about uplifting to ESR115?

Flags: needinfo?(emilio)

Comment on attachment 9372501 [details]
Bug 1873002 - Make the richlistbox contents not grow the richlistbox. r=Gijs

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: comment 0
  • User impact if declined: comment 0
  • Fix Landed on Version: 122
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): See above.
Flags: needinfo?(emilio)
Attachment #9372501 - Flags: approval-mozilla-esr115?

Comment on attachment 9372501 [details]
Bug 1873002 - Make the richlistbox contents not grow the richlistbox. r=Gijs

Approved for 115.7esr.

Attachment #9372501 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dafb28a11ceb Make dialog contents shrinkable even when not scrollable. r=Gijs,settings-reviewers,desktop-theme-reviewers,dao
Regressions: 1874824

Backed out changeset dafb28a11ceb (bug 1873002) for causing Bug 1874824.(on request from Emilio)

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

Verified as fixed on Windows 10 x64, macOS 11.6 and on Ubuntu 20.04 x64.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-regression-triage]
Flags: qe-verify+
Attachment #9372502 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: