Closed Bug 1801607 Opened 2 years ago Closed 2 years ago

Certificate Manager table too high

Categories

(Firefox :: Settings UI, defect, P3)

Firefox 107
defect

Tracking

()

VERIFIED FIXED
110 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox107 --- wontfix
firefox108 --- wontfix
firefox109 --- wontfix
firefox110 --- verified

People

(Reporter: david.balazic, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image ff_cert_view.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0

Steps to reproduce:

update from v106 to v107
open "about:preferences"
Certificates , click "View Certificates..."

Actual results:

the table showing certificates is way too tall, the button on the bottom are visible only after scrolling down

Expected results:

Same as in V106, normal layout

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

I've added some custom certificates for testing on my setup on Windows 10 on v107 but I am unable to reproduce this.
Have you tried this with a fresh profile? (I suppose with your certificates re-imported)

Flags: needinfo?(david.balazic)

(In reply to David Shin[:dshin] from comment #2)

I've added some custom certificates for testing on my setup on Windows 10 on v107 but I am unable to reproduce this.
Have you tried this with a fresh profile? (I suppose with your certificates re-imported)

Is there an easy way to export all certificates? I see the same issue where the "Your Certificates" has a large blank, but scrollable area. It seems like every section share the same length.

(In reply to Blake from comment #3)

(In reply to David Shin[:dshin] from comment #2)

I've added some custom certificates for testing on my setup on Windows 10 on v107 but I am unable to reproduce this.
Have you tried this with a fresh profile? (I suppose with your certificates re-imported)

Is there an easy way to export all certificates? I see the same issue where the "Your Certificates" has a large blank, but scrollable area. It seems like every section share the same length.

If you Ctrl select the certificates (Not the org names) and click "Export," it pops up one save dialog for each selected certificate.

Component: Layout → Settings UI
Product: Core → Firefox

(In reply to David Shin[:dshin] from comment #4)

(In reply to Blake from comment #3)

(In reply to David Shin[:dshin] from comment #2)

I've added some custom certificates for testing on my setup on Windows 10 on v107 but I am unable to reproduce this.
Have you tried this with a fresh profile? (I suppose with your certificates re-imported)

Is there an easy way to export all certificates? I see the same issue where the "Your Certificates" has a large blank, but scrollable area. It seems like every section share the same length.

If you Ctrl select the certificates (Not the org names) and click "Export," it pops up one save dialog for each selected certificate.

I'm getting "Failed to create PKCS #12 backup file for unknown reasons" when trying to export a certificate. The "Servers" section will also not let me select multiple ones.

(In reply to David Shin[:dshin] from comment #2)

I've added some custom certificates for testing on my setup on Windows 10 on v107 but I am unable to reproduce this.
Have you tried this with a fresh profile? (I suppose with your certificates re-imported)

Does not happen in a fresh profile.

I noticed this: the dialog height minimum (actually the minimum height of some element in it) is set to match the "Servers" tab height.
IOW: the Servers tab can be scrolled from top to bottom by the single scrollbar, while other tabs with longer lists (like the "Authorities") have two nested vertical scroll bars, and tabs with shorter list (like "Your Certificates") are stretched out (the table has many empty lines below the normal entries) and needs to be scrolled.

I guess you can reproduce the issue by filling the "Servers" tab with many entries (i.e. visit a website with invalid certificate, clik "open website anyway and add it to the list", repeat).

Flags: needinfo?(david.balazic)

(In reply to Blake from comment #5)

I'm getting "Failed to create PKCS #12 backup file for unknown reasons" when trying to export a certificate. The "Servers" section will also not let me select multiple ones.

Likely managed by the OS as per bug 374845 comment 18.

QA Whiteboard: [qa-regression-triage]

I was able to reproduce this using the DevTools to artificially inflate the number of items in the servers list by duplicating the richlistitems that already exist in there.

Severity: -- → S3
Priority: -- → P3

(In reply to Mike Conley (:mconley) (:⚙️) from comment #9)

Here are some (maybe) STR that might help us find a regression range:

  1. Open about:preferences
  2. Choose the Privacy & Security pane and scroll down to the "View Certificates" button
  3. Click the "View Certificates" button to open the certificate manager dialog
  4. Click on the "Servers" tab
  5. Open the page devtools (Ctrl-Shift-K / Cmd-Shift-K)
  6. In the console, paste this code in and press enter:
let serverList = gSubDialog._dialogs[0]._frame.contentDocument.querySelector("#serverList"); 
serverList.style.height = "500px";

ER:

The dialog should not stretch such that it becomes unusable.

AR:

The dialog gets taller to the point where it stretches outside of the bounds of the content area.

With these steps, mozregressions points to Bug 1689816.

:emilio, since you are the author of the regressor, bug 1689816, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Allow the tabbox/tabpanels to shrink, and remove an useless <vbox>.

Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(emilio)

I was also able to reproduce this issue using the steps from Comment 9, Thanks Mike ! Updating the flags for this issue.

Better and more realistic STR:

  1. Open about:preferences
  2. Choose the Privacy & Security pane and scroll down to the "View Certificates" button
  3. Click the "View Certificates" button to open the certificate manager dialog
  4. Click on the "Servers" tab
  5. Open the page devtools (Ctrl-Shift-K / Cmd-Shift-K)
  6. In the console, paste this code in and press enter:
let serverList = gSubDialog._dialogs[0]._frame.contentDocument.querySelector("#serverList"); 
for (let i = 0; i < 100; ++i) {
  let item = document.createXULElement("richlistitem");
  let content = document.createElement("div");
  content.textContent = `Row ${i}`;
  item.appendChild(content);
  serverList.appendChild(item);
}

ER:

The dialog should not stretch such that it becomes unusable.

AR:

The dialog gets taller to the point where it stretches outside of the bounds of the content area.

That's not great, because the dialog opening code takes measurements of the initial contents to size the dialog. What I did to debug / repro this is going to https://badssl.com, clicking on all the links, and add exceptions for the ones I could. That should leave you with around 40 exceptions in the list which should be enough to reproduce the issue.

Dao is the current version of the patch fine for you?

Flags: needinfo?(dao+bmo)

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

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9471fe1c5c47 Improve certManager layout. r=mconley,settings-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Duplicate of this bug: 1805855
Flags: needinfo?(dao+bmo)

Verified as fixed in our latest Nightly build 110.0a1 (2022-12-20).

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Duplicate of this bug: 1806814

Updating the Main Status flags for this issue.

Status: RESOLVED → VERIFIED
Duplicate of this bug: 1807800
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: