Open
Bug 781493
Opened 14 years ago
Updated 4 years ago
Ensure that long strings are wrapped in tab-modal prompts
Categories
(Toolkit :: General, defect)
Toolkit
General
Tracking
()
NEW
People
(Reporter: happypatrick1971, Unassigned)
References
Details
(Keywords: regression)
Attachments
(3 files, 3 obsolete files)
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347
Steps to reproduce:
When debugging javascript I often use alert messages. Occasionally the text in the alert prompt doesn't show properly (see attached image). I am thus forced to use another browser to debug the javascript.
Actual results:
Text gets truncated
Expected results:
text should be dispayed normally.
Is it possible to attach a minimal testcase or post a public URL to test, please?
although the text is shown correctly (but is not word-warped according to the width of the alert dialog); it's when the option "prevent page from creating additional dialogs" is added to the alert box that the text isn't visible any more (see initial screenshot).
Patrick, does this reproduce for you in the latest Nightly? Also, it would be great if you can provide a minimized testcase that does not require PHP to run. A plain HTML file would be best.
Component: Untriaged → Layout
Product: Firefox → Core
I've downloaded the latest Nightly just now and the problem presists there also. I've included an html axample (without php now).
cheers
Patrick
Attachment #653909 -
Attachment mime type: text/plain → text/html
(In reply to Patrick from comment #5)
> Created attachment 653909 [details]
> a html example only (no php)
Thanks for this testcase. For me the alertbox wraps the text into two lines. I guess my question is what is the expectation for wrapping? Is the expectation that an alertbox should never have a horizontal scrollbar and wrap in such a way that it only displays a vertical scrollbar?
Hi Anthony,
Firefox sometimes does a word-wrap, and sometimes it doesn't. (see new attached example). So Firefox does a word-wrap correctly, but for some reason, it does it not consequently.
I think it not practical to squeeze loads of content in two lines; sometimes encoded strings needs to be send to the client side. But the initial problem was the you don't see any text at all when the option "prevent page from creating additional dialogs" appears also. Debugging will then be difficult.
Attachment #653935 -
Attachment mime type: text/plain → text/html
(In reply to Anthony Hughes, Mozilla QA (:ashughes) from comment #6)
> Thanks for this testcase. For me the alertbox wraps the text into two lines.
> I guess my question is what is the expectation for wrapping? Is the
> expectation that an alertbox should never have a horizontal scrollbar and
> wrap in such a way that it only displays a vertical scrollbar?
This issue has appeared with this bug:
good=2011-02-11
bad=2011-02-12
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=1ed3464aaa92&tochange=9698ac3f1c61
Frank Yan — Bug 613704 - Improve visual design for tab-modal buttons & dialog. r=dolske, a=dolske
So I think it's a regression because after this patch, the dialog box fails to display completely the 2 lines when the option "prevent page from creating additional dialogs" appears.
(see my screenshot)
Comment 10•14 years ago
|
||
CCing Frank Yan and Justin Dolske on this bug since they were the developers involved in that patch. Thanks Loic.
Comment 11•14 years ago
|
||
Thanks Patrick for the testcase, I can see the difference now. Note this is not Windows-only.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Windows 7 → All
Hardware: x86 → All
Version: 14 Branch → Trunk
Summary: alertbox doesn't show text properly → alertbox doesn't always wrap long strings
Updated•14 years ago
|
Status: NEW → ASSIGNED
Component: Layout → General
Product: Core → Toolkit
Comment 13•14 years ago
|
||
For additional reference, pasting what Justin Dolske [:Dolske] wrote in bug 633687 comment #0:
> Using http://dolske.net/mozilla/tests/prompt/sizes.html...
>
> 1. Using the SuperWide test with prompt() causes the horizontal scrollbar to
> overlap the 1 line of (wide) text. We should be allowing the prompt to be
> taller, so that the scrollbar can have its own space. Possibly this is due
> to using .clientHeight in the size calculation, which doesn't include
> scrollbars?
>
> 2. Using the YourMom testcase, triggering scrollbars in one direction
> triggers scrollbars in both directions. EG, make a huge window, then slowly
> reduce the height, and eventually you get a horizontal scrollbar although
> there's plenty of width.
>
> #1 a bit of a problem (albeit still kind of an edge case). #2 seems fairly
> minor.
Updated•14 years ago
|
Assignee: nobody → fryn
Updated•13 years ago
|
Attachment #650514 -
Attachment is obsolete: true
Updated•13 years ago
|
Attachment #653313 -
Attachment is obsolete: true
Updated•13 years ago
|
Attachment #653909 -
Attachment is obsolete: true
Updated•13 years ago
|
Summary: alertbox doesn't always wrap long strings → Ensure that long strings are wrapped in tab-modal prompts
Comment 14•13 years ago
|
||
I won't have time to work on this unfortunately.
Status: ASSIGNED → NEW
Whiteboard: [mentor=fryn]
Updated•13 years ago
|
Assignee: fyan → nobody
| Reporter | ||
Comment 15•12 years ago
|
||
Any chance of this issue getting resolved or assigned to anyone? It's been open for 1.5 years now; and still have to use a different browser to debug js code because of it.
Comment 16•12 years ago
|
||
(In reply to Patrick from comment #15)
> Any chance of this issue getting resolved or assigned to anyone?
Unfortunately the development team is busy fixing issues more urgent than this one. Frank Yan has graciously offered to help mentor whomever volunteers to fix this issue. Afterall, Mozilla is built on charity of volunteers contributing code.
If this issue is really impacting you this severely perhaps you'd be willing to be that volunteer.
| Assignee | ||
Updated•12 years ago
|
Mentor: fryn
Whiteboard: [mentor=fryn]
Updated•12 years ago
|
Mentor: fryn → nobody
Comment 17•10 years ago
|
||
20160604131506 Mozilla/5.0 (Windows NT 6.1; rv:47.0) Gecko/20100101 Firefox/47.0
20160620030215 Mozilla/5.0 (Windows NT 6.1; rv:50.0) Gecko/20100101 Firefox/50.0
I have tested your issue on latest FF release 47.0 and latest Nightly build and could not reproduce it.
Is this still reproducible on your end ? If yes, can you please retest this using latest FF release and latest Nightly build (https://nightly.mozilla.org/) and report back the results ? When doing this, please use a new clean Firefox profile, maybe even safe mode, to eliminate custom settings as a possible cause (https://goo.gl/PNe90E).
Flags: needinfo?(happypatrick1971)
| Reporter | ||
Comment 18•10 years ago
|
||
Hi,
I am using now version 50.0a1 (2016-07-08), and the problem is still there. I am using the above attachment 'example html 3'
Comment 19•10 years ago
|
||
20160710030217 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0
Hi Patrick,
I still cannot reproduce the issue using attachment "example html 3", but I managed to reproduce the issue using testcase from comment 13 : http://dolske.net/mozilla/tests/prompt/sizes.html ( see attachment "alert prompt")
| Reporter | ||
Comment 20•10 years ago
|
||
Hi Roxana,
I'm not sure about your test case 13, which was an additional reference and apparently is something you used to check the bug. The initial report was focussed on the test-case with attachment 'example html 3' at the beginning.
Once you open this example link 'example html 3', and you click on the 'show faulty alertbox' link there the problem is still there. A horizontal scrollbar appears (on my machine) using the latest nightly built, as well as the current official FF version; and on various different machines.
Don't you see any difference between 'show correct alertbox' and 'show faulty alertbox' in this example?
Comment 21•10 years ago
|
||
Hi Patrick,
I managed to reproduce the issue with "example html 3" when click on "show faulty alertbox" but only if the browser is minimized. With testcase from comment 13 I reproduced the issue with browser maximized.
Comment 22•10 years ago
|
||
The initial bug is stll here, I just tested myself.
Flags: needinfo?(happypatrick1971)
Updated•5 years ago
|
Mentor: nobody
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•