Open
Bug 1287035
Opened 8 years ago
Updated 1 year ago
Unreadable alert() without white spaces
Categories
(Toolkit :: Content Prompts, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: github, Unassigned)
Details
Attachments
(1 file)
52.95 KB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Steps to reproduce:
Execute in your script or in the JS console (copy from attached file if the following dosn't work):
for (var i=0; i++ < 5;)
{
alert('Loremipsumdolorsitamet,consetetursadipscingelitr,seddiamnonumyeirmodtemporinviduntutlaboreetdoloremagnaaliquyamerat,seddiamvoluptua.Atveroeosetaccusametjustoduodoloresetearebum.Stetclitakasdgubergren,noseatakimatasanctusestLoremipsumdolorsitamet.Loremipsumdolorsitamet,consetetursadipscingelitr,seddiamnonumyeirmodtemporinviduntutlaboreetdoloremagnaaliquyamerat,seddiamvoluptua.Atveroeosetaccusametjustoduodoloresetearebum.Stetclitakasdgubergren,noseatakimatasanctusestLoremipsumdolorsitamet.Loremipsumdolorsitamet,consetetursadipscingelitr,seddiamnonumyeirmodtemporinviduntutlaboreetdoloremagnaaliquyamerat,seddiamvoluptua.Atveroeosetaccusametjustoduodoloresetearebum.Stetclitakasdgubergren,noseatakimatasanctusestLoremipsumdolorsitamet.Duisautemveleumiriuredolorinhendreritinvulputatevelitessemolestieconsequat,velillumdoloreeufeugiatnullafacilisisatveroerosetaccumsanetiustoodiodignissimquiblanditpraesentluptatumzzrildelenitauguedui\n\n\n\n\n\n\n\n\nHello world! 1\nHello world! 2\nHello world! 3');
}
Actual results:
If a long text line without whitespaces is outputted in an alert and the text is wider than the screen width, and additionally, the long line is followed by line breaks, then the alert box doesn't wrap the text and also shrinks the alert box height so much, that only the first line is visible. If such an alert text is outputted multiple times and Firefox additionally shows the checkbox to prevent the site to show further alert boxes, the alert box shrinks vertically even more and then only a half line is visible (see attached screenshots). This makes it impossible to read the text in the alert box. I see this behaviour for years now and it is still not fixed in v47. It is very frustrating... No other browser does this.
Expected results:
alert() should not shrink its own height so much, that almost no text is visible. Expected behaviour would be, that Firefox should stretch the alert box' height to show all lines or at least have a minimum height.
Updated•8 years ago
|
Component: Untriaged → General
Product: Firefox → Toolkit
Just to clarify: In firefox_alert_test1.png there are additional lines which can be seen if you scroll down inside the alert.
Updated•8 years ago
|
Component: General → Notifications and Alerts
Updated•2 years ago
|
Severity: normal → S3
Updated•1 year ago
|
Component: Notifications and Alerts → Content Prompts
You need to log in
before you can comment on or make changes to this bug.
Description
•