Closed
Bug 215991
Opened 21 years ago
Closed 19 years ago
editable contents of js prompt sheet may line wrap with no visual indication given
Categories
(Camino Graveyard :: Toolbars & Menus, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino0.9
People
(Reporter: chris, Assigned: mikepinkerton)
References
()
Details
(Keywords: testcase)
Attachments
(2 files, 1 obsolete file)
17.23 KB,
image/png
|
Details | |
815 bytes,
patch
|
Details | Diff | Splinter Review |
Camino 2003080402 & many previous builds.
(bug became known to me while using the 'shorten bug query' bookmarklet here:
http://www.squarefree.com/bookmarklets/mozilla.html )
Long strings or long passages can be entered into a javascript prompt and when
this happens instead of staing on one line and folowing off the screen
horizontally like most UI elements (url bar, text fields, etc) this sheet seems
to want to word wrap.
In the case of a pre-populated dialog like the included where the user doesn't
know what the "default" content this may cause a number of problems may occur
including data loss or just erroneous data being submitted to an application.
Apparent content of prompt:
http://bugzilla.mozilla.org/
Actual content of prompt:
http://bugzilla.mozilla.org/buglist.cgi?product=Firebird&keywords=regression&votes=1&resolution=---&order=bugs.votes,
bugs.bug_id
To access the entire content care must be given to select all and copy paste
elsewhere or know to hit the down arrow to see the other 3 'lines' of text.
Resolution:
Either keep the content all on on one line as other elements and other browsrs
do (providing the visual clue of having overrunning text) or make the prompt
area a multi-line <html:textarea> like widget with scrollers and other visual
clues that there is more data.
Quick screen shot will be attached in a second.
Reporter | ||
Comment 1•21 years ago
|
||
heres a quick shot of the prompt used in this example... it looks almost
identical to the output of: javascript:prompt("Copy this:",
"http://bugzilla.mozilla.org/");
Assignee | ||
Comment 2•21 years ago
|
||
curious, i'll take a look
Status: NEW → ASSIGNED
Target Milestone: --- → Camino1.0
Comment 3•20 years ago
|
||
I'm thinking the text field just needs to be changed from "wraps" to "scrolls".
Comment 4•19 years ago
|
||
Wevah: Care to test that and possibly submit a patch?
Comment 5•19 years ago
|
||
This should do it, if I got the file right. Someone should test this to make
sure.
Comment 6•19 years ago
|
||
Oops, wrong method. Should use setScrollable:YES and not setWraps:NO.
Sorry for the quasi-spam.
Attachment #191036 -
Attachment is obsolete: true
Updated•19 years ago
|
Attachment #191036 -
Attachment filename: nsnsAlertController.patch → nsAlertController.patch
Assignee | ||
Comment 7•19 years ago
|
||
landed, thanks!
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: Camino1.0 → Camino0.9
You need to log in
before you can comment on or make changes to this bug.
Description
•