Closed
Bug 266038
Opened 20 years ago
Closed 20 years ago
Title renders one line too high (so half visible) when setting newline in document.title from Javascript.
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 253034
People
(Reporter: bendydan, Assigned: bugs)
Details
Attachments
(1 file)
20.97 KB,
image/png
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 If a page contains Javascript that does document.title = "blahblah\n\nblahblah"; then the resulting Firefox window draws the text in the title one line too high, so that it's cut off by the top of the overall Windows window. Reproducible: Always Steps to Reproduce: 1. Go to a page containing this HTML: <html> <head> <title>Document title</title> </head> <body> <script language="JavaScript" type="text/javascript"> <!-- document.title = "Firefox renders\n\nthis wrongly"; // --> </script> </body> </html> Actual Results: Title renders vertically offset by a line, so it's only half visible and unreadable. Expected Results: Ignored the newlines in the title, I guess.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Works for me in both 1.0PR and the latest nightly (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041025 Firefox/0.9.1+) Please try with a newer build, and if it works for you, mark this worksforme.
Comment 3•20 years ago
|
||
dolphinling: then you're probably using Windows Classic style, which seems to strip newlines in window titles, while XP/Luna does not, latest trunk or latest branch. In any case, it's just another route to producing bug 253034 *** This bug has been marked as a duplicate of 253034 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•