Closed
Bug 276894
Opened 20 years ago
Closed 20 years ago
"Website Certified by an Unknown Authority" dialog is too wide
Categories
(Core Graveyard :: Security: UI, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Stefan.Borggraefe, Assigned: Stefan.Borggraefe)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
|
874 bytes,
patch
|
neil
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
This is a regression from bug 251991. Steps to reproduce: 1. Go to the page https://ghost.anime.pl/~eyck/log/index.digitalPaper.html 2. Accept the first dialog (certificate expired warning) by pressing "Continue". 3. A second dialog pops up, warning about the certificate being certified by an unknown authority. Result: The second dialog (newserver.xul) is too wide.
| Assignee | ||
Comment 1•20 years ago
|
||
I compared the size I chose with the size of the same dialog in an 1.7-build. They are roughly the same.
| Assignee | ||
Updated•20 years ago
|
Attachment #170168 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #170168 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 2•20 years ago
|
||
Comment on attachment 170168 [details] [diff] [review] Patch Actually I backed out the latest changes to no effect, so I'm blaming some other regression.
Attachment #170168 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #170168 -
Flags: superreview+
Attachment #170168 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #170168 -
Flags: review+
| Assignee | ||
Comment 3•20 years ago
|
||
Neil, do you have (like I had until now) the patch for Bug 274703 in your tree? I tested revertig this patch and it seems it was causing the problem. :-(
Comment 4•20 years ago
|
||
Aha, so what's going on here, is that the startup sets the third reason from a formatted string. Then, it tried to size to content. However, because the pending reflows weren't getting flushed, the window was still sizing to the width of the first reason (which is the widest string defined in the XUL). With properly flushed reflows the window now sizes to the width of the third reason.
Comment 5•20 years ago
|
||
So the dialog used to line-wrap the reason, but now it's setting its size based on the reason and the reason is ending up all on one line?
Comment 6•20 years ago
|
||
(In reply to comment #5) >So the dialog used to line-wrap the reason Well, without the patch in bug 274703 the insertion of the text into the reason does not fully flush, so that the size is calculated as if the text was not there. Then when the dialog is shown it is too late the dynamic text is then forced to flow to the width of the static text. (Don't ask me how the height is sorted out, that's beyond me...) With that patch the dialog correctly sizes to the dynamic text, thus requiring the patch attached here. Accessing document.documentElement.boxObject.width (or height) will also force the appropriate flush.
Comment 7•20 years ago
|
||
OK. I see.
| Assignee | ||
Comment 8•20 years ago
|
||
I wonder if it still makes sense to check the patch in. Currently the dialog only gets a decent width "by accident" and it is not obvious why it gets it. On the other hand I could as well just mark this bug as INVALID, because the described regression doesn't exist (yet). When the patch for bug 274703 gets checked in I could reopen this bug, check in the already reviewed patch and resolve the bug as FIXED again. ;-)
Depends on: 274703
| Assignee | ||
Comment 9•20 years ago
|
||
Since the patch for bug 274703 was checked in, I now also checked in this regression fix. Marking FIXED.
Status: NEW → RESOLVED
Closed: 20 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
•