Closed
Bug 217082
Opened 21 years ago
Closed 21 years ago
Tree view of certificate fields in Certificate viewer is corrupt
Categories
(Core Graveyard :: Security: UI, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: danne.persson, Assigned: KaiE)
Details
(Keywords: regression)
Attachments
(2 files)
33.99 KB,
image/jpeg
|
Details | |
790 bytes,
patch
|
jgmyers
:
review+
sspitzer
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718
Opening a mail that has been digitally signed (thawte personal freemail CA)
with a valid signature. open up the security info (double click on "pen")
view signature certificate --> details
the Certificate field tree can corrupt sometimes, making it possible to
press the topmost "-" and make the complete tree disappear. also, just before
this happens the end of the tree disappears. Only way to get it
back, is to close the Certificate viewer, and reopen it using the "view
signature certificate --> details"
Reproducible: Sometimes
Steps to Reproduce:
1.Open a signed mail
2.view the "certificate viwer"
3. expand and compact the tree by pressing the + and - on the tree
how to reproduce it?
tried with 2 different certificates (a swedish bank certificate)
Can't understand exactly when it happens sadly.
It might be connected to the first few opening and closings of
the "leafs" if it doesn't happen then, it won't happen (~10 tries)
order of opening? how the tree expands out of view at the bottom limit?
On a side? issue. After a couple of opening and closings the tree also starts
showing gray lines to entries after the last ones that aren't available.
Actual Results:
corrupt tree
Expected Results:
The tree should not corrupt
Can always send screen caps of what it looks like.
Comment 1•21 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030916
I don't know if this is the same, but this also happens when showing SSL
certificates in the browser. An older bug (140302) with the certificate viewer
was assigned to the "PSM/Client library" component. Maybe you should correct
product/component fields of this bug.
Comment 2•21 years ago
|
||
The 'certificate fields' are corrupt (no scrollbar).
Clicking on the both remaining [-] (arrow down) will remove the corresponding
subtree and line. The line www.verisign.com will disappear after clicking in
the 'field value'.
Comment 3•21 years ago
|
||
This bug is still reproducible with
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.6b) Gecko/20031125
=> new
The easiest way to reproduce this bug is by viewing the certificate full
expanded and the last [-] is on the last line in the view. The screenshot is the
result after collapsing the subtrees successive.
Status: UNCONFIRMED → NEW
Component: Mail Window Front End → Client Library
Ever confirmed: true
OS: Windows XP → All
Product: MailNews → PSM
Version: Trunk → 2.3
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031207
Firebird/0.7+
Confirming bug in above ^ build.
Steps to Reproduce:
1) Goto www.cacert.org
2) Tools > Page Info > Security > View > Details
3) Click "www.cacert.org" in 'Certificate Hierarchy'
4) Close the "[-] Certificate" node in 'Certificate Fields'
5) Close the "[-] www.cacert.org" node in 'Certificate Fields'
Result: Tree will disappear from 'Certificate Fields'
Updated•21 years ago
|
Assignee: sspitzer → kaie
QA Contact: esther → bmartin
Comment 5•21 years ago
|
||
I have tested this with a 1.4 release (20030624) and the certificate viewer
works fine, so this is a regression. It would be fine if someone with a nightly
between the 1.4 and 1.5a releases could refine the date of this regression.
Keywords: regression
Comment 6•21 years ago
|
||
I think I found a bug in nsNSSASN1Tree::ToggleOpenState
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/security/manager/pki/src/nsASN1Tree.cpp&rev=1.15&cvsroot=/cvsroot&mark=366,370#351
CountVisibleNodes(n) counts the number of activated lines in AND after node n.
node n is the selected node with the clicked sign [+] or [-]. When open or
collapse a node, then I expect that only the numbers of rows BELOW this node
changes and not the nodes after this node.
Maybe that the following changes for the marked lines will work (I will test
after the weekend):
rowCountChange = -CountVisibleNodes(n->seq);
rowCountChange = CountVisibleNodes(n->seq);
Comment 7•21 years ago
|
||
Replacing the marked lines in
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/security/manager/pki/src/nsASN1Tree.cpp&rev=1.15&cvsroot=/cvsroot&mark=365-371#351
by
if (IsExpanded) {
rowCountChange = 0-CountVisibleNodes(n->child);
n->seq->SetIsExpanded(PR_FALSE);
} else {
n->seq->SetIsExpanded(PR_TRUE);
rowCountChange = CountVisibleNodes(n->child);
}
will fix the testcases as described in comment 4 and comment 2.
I have no CVS access from here and patchmaker will not work on sourcecode files
without CVS access. Maybe someone could create a patch
=> Setting keyword helpwanted
Keywords: helpwanted
Summary: certificate viewer ; Details ; certificate fields ; tree view corrupts → Tree view of certificate fields in Certificate viewer is corrupt
Comment 8•21 years ago
|
||
Updated•21 years ago
|
Keywords: helpwanted
Updated•21 years ago
|
Attachment #141549 -
Flags: review?(kaie)
Comment 9•21 years ago
|
||
r=ssaux
Comment 10•21 years ago
|
||
Comment on attachment 141549 [details] [diff] [review]
Proposed fix
(Recording ssaux review)
Attachment #141549 -
Flags: superreview?(sspitzer)
Attachment #141549 -
Flags: review?(kaie)
Attachment #141549 -
Flags: review+
Comment 11•21 years ago
|
||
Comment on attachment 141549 [details] [diff] [review]
Proposed fix
sr=sspitzer, sorry for the delay john.
Attachment #141549 -
Flags: superreview?(sspitzer) → superreview+
Comment 12•21 years ago
|
||
Fix checked in. Thanks for the help.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•