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)

Other Branch
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Stefan.Borggraefe, Assigned: Stefan.Borggraefe)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

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.
Attached patch PatchSplinter Review
I compared the size I chose with the size of the same dialog in an 1.7-build.
They are roughly the same.
Attachment #170168 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #170168 - Flags: review?(neil.parkwaycc.co.uk)
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+
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. :-(
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.
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?
(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.
OK.  I see.
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
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
Product: PSM → Core
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: