It would be nice to be able to set: <dialog buttons="accept,cancel" disableAcceptButton="true"> Then in the dialog.xml binding, we could say: <xul:button dlgtype="accept" class="dialog-button" xbl:inherits="disabled=disableAcceptButton"/> I'm assigning this bug to myself (it's really easy to fix), but I'd like to see if anyone has a better idea to implement this.
Rationale: For most anonymous buttons in a dialog, having them disabled by default would not be reasonable. I believe disabling the accept button would be acceptable for semantic reasons. If a dialog has accept and cancel buttons, then the user should be able to cancel without ill effects. However, the accept button is rather more important...
You must be using a really old version of dialog.xml (1.7?); if you look at a trunk dialog.xml, you'd probably use disabled=buttondisabledaccept instead.
Hm, that's odd :) I don't remember the (In reply to comment #3) > You must be using a really old version of dialog.xml (1.7?); if you look at a > trunk dialog.xml, you'd probably use disabled=buttondisabledaccept instead. 1.27. You landed a patch to bug 78274 four days after I created the patch. :) That's the fastest case of bit rot I've ever seen. I'll post a new patch in a few days.
Created attachment 171837 [details] [diff] [review] <dialog buttondisabledaccept="true"> patch answering neil's concern
please fix the summary :)
Created attachment 205801 [details] [diff] [review] patch for toolkit I'm not entirely sure toolkit wants this one; the xbl:inherits attributes in xpfe don't exist for toolkit. mconnor, what do you think?
Per the SeaMonkey code reviews page, timeless has officially dispensed the sr requirement he originally requested. In other words, if the SeaMonkey Council has no problem, the xpfe patch can land now. That said, I am keeping the sr? flag for the moment, pending clarification of the review rules for XUL widget bindings.
jag, are you willing to offer sr on the xpfe patch?
Comment on attachment 205801 [details] [diff] [review] patch for toolkit tbh, I'm not sure why we can't just support this on all buttons, like we do with all other attrs, but I'm struggling to think of a good use case, offhand
jag, neil: timeless has r+'d the xpfe version; I'm awaiting sr from one of you (+ or -) on it. mconnor has given me r+ on the toolkit version. I'd like to avoid desynchronizing the two versions, so could you please give me a yea or a nay on this? It's been sitting awaiting sr for over a year now.
Created attachment 217347 [details] [diff] [review] patch for xpfe (revised) Neil points out I missed the mac version.
checked in by ajschult, thanks everyone :)
Comment on attachment 205801 [details] [diff] [review] patch for toolkit Please land this on the branch as well, a181=mano.
landed the toolkit patch on the 1.8 branch: Checking in mozilla/toolkit/content/widgets/dialog.xml; /cvsroot/mozilla/toolkit/content/widgets/dialog.xml,v <-- dialog.xml new revision: 184.108.40.206; previous revision: 220.127.116.11 done
Comment on attachment 217347 [details] [diff] [review] patch for xpfe (revised) Looks like this was never checked in on the 1.8.1 branch. Neil, can you check it in?
Fix checked in to the branch.