Closed
Bug 60513
Opened 24 years ago
Closed 17 years ago
alert(), prompt(), confirm() box text has static text (text not selectable)
Categories
(Core :: XUL, enhancement, P3)
Core
XUL
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: ccurtis0, Assigned: martijn.martijn)
References
Details
Attachments
(2 files, 3 obsolete files)
7.65 KB,
patch
|
Gavin
:
review+
beltzner
:
review+
dbaron
:
approval1.9+
|
Details | Diff | Splinter Review |
7.42 KB,
patch
|
Details | Diff | Splinter Review |
While the alert is being displayed, it is not possible to highlight the error message, for instance, to copy into a bug report.
Is this bug valid at all? I've never seen selectable alert-box text in any application.
Reporter | ||
Comment 2•24 years ago
|
||
Well, when Gnome crashes the window presented has a hyperlink on it that sends all sorts of basic info (platform, program, version) to a form, so there's really no need to say 'nobody else does it...' If it's a problem to do it, it can be dropped - I reclassified it 'enhancement' to reflect this - but I've always hated not being able to cut&paste error messages. Furthermore, when a Windows app crashes, the call stack (or whatever that is) appears in a subwindow where it can be copied from. And in my own experience, I'd rather someone send me error text than a screenshot of an error, which is the only alternative if you don't want to retype whatever message is being displayed, not to mention that retyping can introduce its own errors such as transposed numbers. Seems to me to be simple and useful. If it's not simple, mark it WONTFIX or let someone else work on it, but please don't simply dismiss it.
Severity: minor → enhancement
The Gnome window you refer to is the "Bug-buddy". The equivalent in Mozilla is the QA Talkback. Talkback has various settings available, you can make it store the talkbacks it send. Is it the Talkback dialog-box/window you refer to in this bug, or alert-box'es in general, throughout mozilla?
Reporter | ||
Comment 4•24 years ago
|
||
I was specifically referring to just the Alert boxes, but was trying to show similar things (problems the user should be aware of) where text could be copied. There is a bug in the IMAP code that presents invalid alert messages. I wanted to copy these messages for a bug report and was unable to. In my own code, my alerts contain useful information to me, as the developer, and I see no reason to prevent the user from giving me this information easily. Not allowing me to highlight and copy the text makes this process difficult, for no good reason (that I see). Now, I could be talking completely out of my rearend here, but aren't these things called "text-boxes" (selectable) and "labels" (non-selectable)? The message being displayed in an Alert isn't really a label, if that is the case, it is a text message ... either way, it was just something that irked me and which had no obvious reason except "that's how it's always been done", which isn't much of a reason at all. ;-)
Comment 5•24 years ago
|
||
It would be an enhancement, but realistically it is never going to be a priority for us. It could still get done if it is trivial, or if someone else wanted to do the work. ->future
Target Milestone: --- → Future
Comment 6•24 years ago
|
||
Confirming as an enhancement and moving to all platforms.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Comment 7•22 years ago
|
||
*** This bug has been marked as a duplicate of 31655 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Comment 8•22 years ago
|
||
*** Bug 192441 has been marked as a duplicate of this bug. ***
Comment 9•22 years ago
|
||
*** Bug 141699 has been marked as a duplicate of this bug. ***
Comment 10•22 years ago
|
||
Daniel: Please provide the reason you dupe a bug. That is common bug etiquette. This is not a dupe of bug 31655. Besides, bug 31655 is too general. From bug 31655: Sebastian Späth wrote: >You can already do this. Start Mozilla with the -console option. You will get a >DOS box with all the error and timing output. You can easily select and copy >it. Says nothing about alert() just about general errors being trapped to the console. Also, alert doesn't appear in the console on my Win32. > Do I need to do something more in oder to get the error-messages on the >console alert() not appearing on console should be another bug (if it is one). I will fix this, it would not be harmful to make alert() text selectable. trudelle: Mind if I take this?
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Comment 11•22 years ago
|
||
prompt() and confirm() might be fixable with the same stroke of the magic wand. I remembered about prompt() and confirm() from looking at bz's comments on bug 50348.
Summary: Alert box text is static → alert(), prompt(), confirm() box text has static text (text not selectable)
Comment 12•21 years ago
|
||
*** Bug 209339 has been marked as a duplicate of this bug. ***
Comment 13•21 years ago
|
||
Could the priority on this be increased at all? I think this would be a very useful feature and currently there is not much chance of it being implemented. JG
Comment 14•21 years ago
|
||
The priority is up to the person the bug is assigned to. If anyone is going to work on this, they can take the bug (with Peter Trudelle's permission) and then assign the priority to whatever they want. The priority is more for individuals implementing the feature to prioritize, and isn't the priority mozilla.org sees of the bugfix.
Comment 15•21 years ago
|
||
AIM for Windows lets you copy text from its alerts.
Comment 16•21 years ago
|
||
Mozilla's GTK alerts now allow selection, as per the Gnome HIG. The fix was in bug 231750.
Comment 17•21 years ago
|
||
Ok, please leave this open until its also on Windows and Mac.
Status: REOPENED → ASSIGNED
Comment 18•20 years ago
|
||
*** Bug 205757 has been marked as a duplicate of this bug. ***
Comment 19•20 years ago
|
||
*** Bug 280717 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 20•18 years ago
|
||
So something like this, I guess. I had to use cursor: text !important in xul.css, otherwise the skin's formatting.css rule takes over, apparently. but maybe that rule should be in formatting.css anyway.
Assignee | ||
Updated•18 years ago
|
Attachment #212171 -
Flags: review?(mconnor)
Comment 21•18 years ago
|
||
Wouldn't the proper solution for this be to simply allow Ctrl+C to copy the alert/prompt's content (i.e. title, message and button text)? At least for Windows that would be the consistent (if hardly discoverable) solution. OTOH a context menu wouldn't be more discoverable and would look almost as out of place as having the dialogs' messages as read-only text fields.
Comment 22•18 years ago
|
||
*** Bug 341651 has been marked as a duplicate of this bug. ***
Comment 23•18 years ago
|
||
*** Bug 362234 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•18 years ago
|
Assignee: trudelle → martijn.martijn
Status: ASSIGNED → NEW
Assignee | ||
Updated•18 years ago
|
Attachment #212171 -
Flags: review?(mconnor) → review?(gavin.sharp)
Assignee | ||
Comment 24•18 years ago
|
||
(In reply to comment #21) > Wouldn't the proper solution for this be to simply allow Ctrl+C to copy the > alert/prompt's content (i.e. title, message and button text)? At least for > Windows that would be the consistent (if hardly discoverable) solution. I think that would be nice to have too.
Comment 25•18 years ago
|
||
*** Bug 364522 has been marked as a duplicate of this bug. ***
Comment 26•18 years ago
|
||
Comment on attachment 212171 [details] [diff] [review] patch Sorry for the delay in getting to this (I noticed the patch is bitrotten due to bug 317334). >Index: toolkit/content/xul.css >+dialog vbox[id="info.box"] description { Can you use #info\.box instead? >+ -moz-user-focus: normal; >+ -moz-user-select: text; >+ cursor: text !important; >+ white-space: -moz-pre-wrap; >+} There shouldn't be any element-specific style rules in xul.css. I think you should create a commonDialog.css (probably fine in /content for now) and move commonDialog.xul's inline style rules to it. Other than that I think this looks fine, though I'm a little bit wary of changing all dialog boxes in this way, it could potentially cause any odd styling issues in some cases.
Attachment #212171 -
Flags: review?(gavin.sharp) → review-
Comment 27•18 years ago
|
||
very cool. I just noticed that safari has this for alerts (but IE 7 doesn't). But it is very useful. Thanks for working on this, Martin (and Gavin).
Assignee | ||
Comment 28•17 years ago
|
||
Updated the patch with the suggestions in comment 26.
Attachment #254833 -
Flags: review?
Updated•17 years ago
|
Attachment #254833 -
Flags: review? → review?(gavin.sharp)
Assignee | ||
Comment 29•17 years ago
|
||
Gavin, could you review this?
Attachment #212171 -
Attachment is obsolete: true
Attachment #254833 -
Attachment is obsolete: true
Attachment #283002 -
Flags: review?(gavin.sharp)
Attachment #254833 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 30•17 years ago
|
||
Attachment #283002 -
Attachment is obsolete: true
Attachment #283003 -
Flags: review?(gavin.sharp)
Attachment #283002 -
Flags: review?(gavin.sharp)
Comment 31•17 years ago
|
||
Comment on attachment 283003 [details] [diff] [review] correct patch2, updated Sorry (again) for the delay here :( This should probably get ui-review. Ask in #ux on IRC? It think we may want a separator between "Copy" and "Select all".
Attachment #283003 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Updated•17 years ago
|
Attachment #283003 -
Flags: review?(beltzner)
Comment 32•17 years ago
|
||
Comment on attachment 283003 [details] [diff] [review] correct patch2, updated Yeah, this is OK. I don't think we actually need the separator.
Attachment #283003 -
Flags: review?(beltzner) → review+
Assignee | ||
Updated•17 years ago
|
Attachment #283003 -
Flags: approval1.9?
Comment on attachment 283003 [details] [diff] [review] correct patch2, updated a1.9=dbaron
Attachment #283003 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 34•17 years ago
|
||
This is what I'll be checking in.
Assignee | ||
Comment 35•17 years ago
|
||
RCS file: /cvsroot/mozilla/toolkit/content/commonDialog.css,v done Checking in content/commonDialog.css; /cvsroot/mozilla/toolkit/content/commonDialog.css,v <-- commonDialog.css initial revision: 1.1 done Checking in content/commonDialog.xul; /cvsroot/mozilla/toolkit/content/commonDialog.xul,v <-- commonDialog.xul new revision: 1.13; previous revision: 1.12 done Checking in content/jar.mn; /cvsroot/mozilla/toolkit/content/jar.mn,v <-- jar.mn new revision: 1.33; previous revision: 1.32 done Checking in locales/en-US/chrome/global/commonDialog.dtd; /cvsroot/mozilla/toolkit/locales/en-US/chrome/global/commonDialog.dtd,v <-- co mmonDialog.dtd new revision: 1.4; previous revision: 1.3 done Checked into trunk.
Status: NEW → RESOLVED
Closed: 22 years ago → 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 36•17 years ago
|
||
I'll try to make a litmus test for this. But first I need to know in which sub-group I should create it. This might become clear in the next MozQAE meeting.
Flags: in-litmus?
Comment 37•17 years ago
|
||
looks like bug 50348 and bug 397258 also got fixed along with this.
Comment 38•17 years ago
|
||
For dialogs with a textfield (like the master passsword dialog), focus is now on the dialog text rather than the textfield when the dialog comes up. Is this "correct" behavior? Do the individual dialogs need to be fixed to explicitly focus the textfield?
Assignee | ||
Comment 39•17 years ago
|
||
That sounds like a bug, sorry about that. Please file a new bug for that and make it blocking this bug?
Comment 40•17 years ago
|
||
In what sense is this fixed? When I use the Find command to search for unfound text, in the resulting dialog box titled "Alert" and having a message saying that your text was not found, that message text is not selectable. This is in SeaMonkey 1.1.2 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2)).
Comment 41•17 years ago
|
||
(In reply to comment #1) > Is this bug valid at all? > I've never seen selectable alert-box text in any application. There's a X Window System guideline that says such text should be selectable. (Why shouldn't it be selectable? One might want to copy the text to paste in, say, a bug report or a narrative.)
Assignee | ||
Comment 42•17 years ago
|
||
You need to use trunk builds (e.g. Firefox 3) instead of branch builds (Firefox 2) to be able to test this.
See Also: → https://launchpad.net/bugs/23383
Comment 43•14 years ago
|
||
(In reply to comment #42) > You need to use trunk builds (e.g. Firefox 3) instead of branch builds (Firefox > 2) to be able to test this. Now that the trunk is Firefox 4, this comment is no longer valid: while there were no problems with Firefox 3, text is again not selectable in Firefox 4. I've reported a new bug about this: bug 622416.
You need to log in
before you can comment on or make changes to this bug.
Description
•