Closed Bug 587870 Opened 14 years ago Closed 13 years ago

Don't accept log comments with an empty "Email address" field

Categories

(Tree Management Graveyard :: TBPL, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: philor, Assigned: mounir)

References

()

Details

Attachments

(1 file)

I don't care whether people put in a full email address or an irc nick or their own version of "... at ... dot com" spam-proofing, but over and over, if someone stars a build with a completely empty "Email address" field, it's because they are lying about what it is, they know that they are lying about what it is, and they want to hide who it was who lied about it.
I might be able to tackle this, but fwiw at one computer I routinely use, its perma-set to private-browsing-mode, [and I won't change that], so when I go to first-star, I get blank "who", and it surely is not by malice.
(In reply to comment #1)
> I might be able to tackle this, but fwiw at one computer I routinely use, its
> perma-set to private-browsing-mode, [and I won't change that], so when I go to
> first-star, I get blank "who", and it surely is not by malice.

Well, then you should fill that field out every time!  :-)
Attached patch Patch v1Splinter Review
This is fixing the issue with HTML5 Forms (so Firefox >= 4). So, we still can submit the comment with nothing using Firefox 3.6 and some other UA but do we want to make the code more complex just for that?

Note that I didn't change the type to 'email' given that some people might want to specify a wrong email address or an IRC nick as said philor.
Assignee: nobody → mounir.lamouri
Status: NEW → ASSIGNED
Attachment #504502 - Flags: review?(arpad.borsos)
Comment on attachment 504502 [details] [diff] [review]
Patch v1

So this does prevent the submit event to be fired?
Attachment #504502 - Flags: review?(arpad.borsos) → review+
(In reply to comment #4)
> Comment on attachment 504502 [details] [diff] [review]
> Patch v1
> 
> So this does prevent the submit event to be fired?

With a browser supporting HTML5 Forms validation like Firefox 4, yes.
Pushed:
https://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/rev/599eee7f0f2a
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: