Closed
Bug 313783
Opened 21 years ago
Closed 17 years ago
Long string in alert causes dialog box to roll off screen
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 115997
People
(Reporter: tim.c.quinn, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1
By posting an alert from javascript that has a long string of chars with no spaces or \xA0, the alert dialog box rolls off the screen.
This bug also applies to confirm & prompt.
Reproducible: Always
Steps to Reproduce:
1.From javascript generate an alert/prompt/confirm with a very long string without spaces
Actual Results:
Dialog box rolls off the screen
Expected Results:
Dialog should not exceed screen width in any case.
Note: I like the fact that the dialog is bigger, helps to debug larger strings such as URL's. Ideally, if the alert text is longer than the screen, position the alert to the leftmost of the screen and make it the visible screen width.
I have a core Debugging engine in JavaScript that alerts information such as the URL and sometimes long dumps of information. Also, I by default replace spaces with \xA0 to get around bug 50348 in these debug messages to enable clean error dumps with nice indenting.
Just wanted to add, there's also a similar problem vertically, for alert messages with line breaks in them. More concerningly, this can actually push the okay button off the bottom of the screen (tested under OS X).
Updated•20 years ago
|
Assignee: nobody → general
Component: General → DOM
Product: Firefox → Core
QA Contact: general → ian
Summary: Long string in alert cause dialog box to roll off screen → Long string in alert causes dialog box to roll off screen
Version: unspecified → Trunk
Comment 2•17 years ago
|
||
J Ross wrote "Horizontally definitely seems fixed, haven't seen any problems with vertical length in a long time. I'll try to find time to create a test case... "
Keywords: testcase-wanted
Whiteboard: closeme 2009-04-05
Comment 3•17 years ago
|
||
@Reporter, we have not heard back from you in a while, so I am closing this bug as INCOMPLETE. You can reopen this bug if more information becomes available. Some helpful information you can provide us is found at http://quality.mozilla.org/bug-writing-guidelines. You should also use a recent version of Firefox, from http://www.getfirefox.com.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INCOMPLETE
Comment 4•17 years ago
|
||
Screenshot of on Vista: alert("asdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafas")
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b5pre) Gecko/20090511 Shiretoko/3.5b5pre
Note that the alert window is only slightly wider than the screen and the OK button is not in the visible area.
Comment 5•17 years ago
|
||
Similar screenshot on Mac OS X: the sheet is partially off-screen, no way to close it with mouse.
Comment 6•17 years ago
|
||
I think this bug had adequate steps to reproduce in the first place.
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Comment 7•17 years ago
|
||
a testcase file attached to the bug would still be nice.
in the end, i'll be this is a dupe
Whiteboard: closeme 2009-04-05 → dupeme
A testcase would just be putting this in the URL bar:
javascript:alert("asdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafasasdfasdfsdafas");
Anyway, dupe of bug 115997.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago → 17 years ago
Keywords: testcase-wanted
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•