Closed Bug 720744 Opened 14 years ago Closed 13 years ago

[Mozmill] EventUtils.js: fix some strict warnings and nits

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sgautherie, Assigned: sgautherie)

References

()

Details

(Keywords: helpwanted, Whiteboard: [mozmill-1.5.10+][mozmill-2.0+])

Attachments

(1 file)

(In reply to Mark Banner (:standard8) from bug 720095 comment #7) > This needs to be fixed in the mozmill repository first. iirc the correct > component is Testing:Mozmill. I manage to find out where the mozmill repository is. But I am not going to bother interacting with it directly ftb.
Can you please give more context in what has to be fixed?
Ports changes I made to SimpleTest file in bug 720095. NB: This patch is based on Thunderbird file. I am not sure who to request review from.
Attachment #591153 - Flags: review?(jhammel)
Comment on attachment 591153 [details] [diff] [review] (Av1) EventUtils.js: Fix some strict warnings and nits + if (("type" in aEvent) && aEvent.type) { Not sure why this is necessary; if not, won't aEvent.type be undefined, which is a false value anyway? Likewise for subsequent comments
Blocks: 720097
(In reply to Jeff Hammel [:jhammel] from comment #3) > + if (("type" in aEvent) && aEvent.type) { > > Not sure why this is necessary; if not, won't aEvent.type be undefined, > which is a false value anyway? Likewise for subsequent comments (In SimpleTest) It is needed to avoid triggering a javascript strict warning. I know little about Mozmill, but I assume that applies there too.
Well, that's simply awful, but i guess we should do it :(
Attachment #591153 - Flags: review?(jhammel) → review+
Keywords: checkin-needed
(In reply to Jeff Hammel [:jhammel] from comment #3) > + if (("type" in aEvent) && aEvent.type) { > > Not sure why this is necessary; if not, won't aEvent.type be undefined, > which is a false value anyway? Likewise for subsequent comments Yes this is necessary because otherwise (as Serge pointed out) a strict JS warning gets thrown. Serge, have you checked the original version of that file in mozilla-central if it is also affected? We should fix it there too.
(In reply to Mark Banner (:standard8) from bug 720095 comment #7) > This needs to be fixed in the mozmill repository first. (In reply to Henrik Skupin (:whimboo) from comment #6) > Serge, have you checked the original version of that > file in mozilla-central if it is also affected? We should fix it there too. Iiuc Mark's comment, the original file is the Mozmill one, then the (3) copies in m-c should be updated (in a follow-up bug(s)) after Mozmill source has been fixed...
No, we don't have the original version of that file. This is really maintained on mozilla-central by devs. We simply forked it and haven't updated the file for a long time. Could be that most of those issues have already been fixed and new stuff has been added which is not part of our version yet.
(In reply to Henrik Skupin (:whimboo) from comment #8) > This is really maintained on mozilla-central by devs. Then I am lost. Which is the original file in m-c precisely? http://mxr.mozilla.org/comm-central/find?text=&string=%2FEventUtils.js
(In reply to Serge Gautherie (:sgautherie) from comment #2) > Ports changes I made to SimpleTest file in bug 720095. (In reply to Henrik Skupin (:whimboo) from comment #10) > It's the one for Mochitest: Woh, going into circle here: let me summarize. I fixed SimpleTest in bug 720095, the 3 m-c "copies" have other differences too. My patch here is to port my changes to Mozmill, so someone else can later update the 3 m-c copies from it, as Mark suggested. Wrt the other existing differences, someone else can deal with them, as need be.
Jeff, can you please take care of the checkin? This patch sits around for a while now and I'm not that clear about the current state. Thanks.
What branches is this needed on? You also have checkin priveleges, :whimboo
Given that the patch has landed across branches we should set the appropriate whiteboard entries.
Whiteboard: [mozmill-1.5.10+][mozmill-2.0+]
(In reply to Clint Talbert ( :ctalbert ) from comment #14) > I noticed the original patch is against comm-central. Does this need to land > in comm-central as well? No, we can pick it up next time we upgrade mozmill in comm-central.
So what is left to do here? Seems like that everything has been landed.
Keywords: checkin-needed
Based on comment 16, we're done.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: