Closed Bug 1583067 Opened 6 years ago Closed 6 years ago

Buttons in the Certificate Manager and Device Manager that open dialogs no longer work

Categories

(Core :: Security, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox67 --- unaffected
firefox68 --- unaffected
firefox69 --- unaffected
firefox70 --- unaffected
firefox71 + fixed

People

(Reporter: 52qtuqm9, Assigned: johannh)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In current Daily, you can't view or delete certificates:

  1. Open Preferences
  2. Select Privacy & Security
  3. Click "Manage Certificates..." near the bottom
  4. Select a certificate
  5. Click "View..." and observe that nothing happens
  6. Click "Delete..." and observe that nothing happens

Error console:

NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIWindowWatcher.openWindow] pippki.js:39
viewCertHelper chrome://pippki/content/pippki.js:39
viewCerts chrome://pippki/content/certManager.js:492
oncommand chrome://pippki/content/certManager.xul:1
NS_ERROR_ILLEGAL_VALUE: certManager.js:463
deleteCerts chrome://pippki/content/certManager.js:463
oncommand chrome://pippki/content/certManager.xul:1

Regression:

7:00.96 INFO: Last good revision: a55d5e1c611a347d559d1853af54df68ebcc3d8d
7:00.96 INFO: First bad revision: 76caeacb09c7579451e2b2cf757bd5f5f518aae0
7:00.96 INFO: Pushlog:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=a55d5e1c611a347d559d1853af54df68ebcc3d8d&tochange=76caeacb09c7579451e2b2cf757bd5f5f518aae0

Looks like bug 1553804 forgot to add chrome=no onto the call here:
https://searchfox.org/mozilla-central/rev/e3fc8f8970491aef14d3212b2d052942f4d29818/security/manager/pki/resources/content/pippki.js#39

Firefox gives this when trying to delete a certificate:
NS_ERROR_ILLEGAL_VALUE: certManager.js:463
which is also a call to open a Window: window.openDialog("chrome://pippki/content/deletecert.xul",

Strange that only TB users seem to be handling certificates.

Component: Preferences → Security
Flags: needinfo?(kmaglione+bmo)
Product: Thunderbird → Core
Regressed by: 1553804
Status: UNCONFIRMED → NEW
Ever confirmed: true

(In reply to Jorg K (GMT+2) from comment #1)

Strange that only TB users seem to be handling certificates.

One typically only deletes certificates when there's a need to, which is quite seldom given their typical lifetimes.
I am on Firefox and happened to have to do it today, incidentally, if you're looking for datapoints on who does what when :D

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(kmaglione+bmo)
Resolution: --- → FIXED

Kris, you fixed viewing a certificate here:
https://hg.mozilla.org/mozilla-central/rev/b8dfe5ab5aba#l1.2

but deleting one still gives:
NS_ERROR_ILLEGAL_VALUE: certManager.js:463
deleteCerts chrome://pippki/content/certManager.js:463
oncommand chrome://pippki/content/certManager.xul:1

Status: RESOLVED → REOPENED
Flags: needinfo?(kmaglione+bmo)
Resolution: FIXED → ---

chrome://pippki/content/device_manager.js:329 as well, and there may be others in that directory

Status: REOPENED → NEW
Summary: Can't view or delete personal certificates → Can't delete personal certificates

This is a tracked functional regression in 71 with duplicates filed. Wennie, could we get this assigned and prioritized please? Thanks.

Flags: needinfo?(wleung)
Assignee: nobody → jhofmann
Status: NEW → ASSIGNED
Flags: needinfo?(wleung)
Flags: needinfo?(kmaglione+bmo)
Priority: -- → P1

Quite devastating that we don't seem to have a single test for any of this. Should probably file a follow-up.

Looks like there's a lot more broken in the certificates manager (bug 1586414). Should that be duped against this one, and fix everything here?

Should all be fixed here, I'd say. As far as I can tell, all those buttons launch windows which now don't work any more.

Summary: Can't delete personal certificates → Buttons in the Certificate Manager and Device Manager that open dialogs no longer work
Pushed by jhofmann@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9dfd2afee1bb Use correct window opener for chrome windows in certManager.js. r=kmag
Status: ASSIGNED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Flags: qe-verify+

Hello! Reproduced the issue with Firefox 71.0a1 (20190922213341) on Windows 10x64. "Delete or Distrust" button from "View Certificates" not working as well as "Load" and "Change Password" button from Device Manager.
The issue is verified fixed with Firefox 71.0b9 (20191111170815) on Windows 10x64, macOS 10.12 and Ubuntu 18.04.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

My experience is different.

The delete button does not work properly for me with Nightly on macOS. It appears to delete the certificate but it still exists and affects websites.

When I reopen the certificate manager or restart Firefox, the "deleted" certificate is back in the list.

Alexandru, can you check whether the certificate is actually gone and not just missing from the display temporarily? See the comment above.

Flags: needinfo?(alexandru.trif)

(In reply to Gian-Carlo Pascutto [:gcp] from comment #17)

Alexandru, can you check whether the certificate is actually gone and not just missing from the display temporarily? See the comment above.

He is right. I didn't notice this, I was only checking for button functionality. The Certificate is deleted temporarily, after reopening the Certificate Manager the deleted certificate is back. Checked with Firefox 72.0a1 (20191114055112) and Firefox 71.0b9 (20191111170815) on Windows 10x64 and macOS 10.12.

Flags: needinfo?(alexandru.trif)
Status: VERIFIED → REOPENED
Resolution: FIXED → ---

You should really open a different bug. This one was caused by bug 1553804, and as far as I can tell that was fixed (the button weren't doing anything before).

All the related bugs were duped to this one and Francesco Lodolo suggested earlier that they could all be fixed here (https://bugzilla.mozilla.org/show_bug.cgi?id=1583067#c10). Feel free to re-file if you disagree with him. I guess the problem is that the UI is now sending the correct stuff to the certificate manager, but the latter doesn't actually work? Hard to blame users for not understanding the internal distinctions here.

I filed the follow-up here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1596401

I'll re-close this and indicate it's only the UI that appears now (which really makes the bug worse, as now the feature appears to work when it doesn't!).

Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
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: