Closed Bug 1111260 Opened 10 years ago Closed 10 years ago

Incorrect reference to nsITimer.TYPE_ONE_SHOT in marionette-server.js

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla37

People

(Reporter: ato, Assigned: ato)

Details

(Keywords: pi-marionette-server)

Attachments

(1 file, 1 obsolete file)

marionette-server.js has four incorrect references to nsITimer.TYPE_ONE_SHOT that trigger ReferenceError's at runtime.

The affected code only works by chance that the constant TYPE_ONE_SHOT's value is 0.

Affected lines as of 219503:f14dcd1c8c0b:

% g ONESHOT
./marionette-server.js:892:       }, inactivityTimeout, Ci.nsITimer.TYPE_ONESHOT);
./marionette-server.js:1055:      }, inactivityTimeout, Ci.nsITimer.TYPE_ONESHOT);
./marionette-server.js:1063:       }, inactivityTimeout, Ci.nsITimer.TYPE_ONESHOT);
./marionette-server.js:1131:        }, that.timeout, Ci.nsITimer.TYPE_ONESHOT);
Assignee: nobody → ato
Status: NEW → ASSIGNED
Attached file MozReview Request: bz://1111260/ato (obsolete) —
Attachment #8536079 - Flags: review?(dburns)
/r/1453 - Bug 1111260 - Fix references to nsITimer.TYPE_ONE_SHOT; r=dburns

Pull down this commit:

hg pull review -r f6174b2e3740a0cb17fae802aad22ccbc7234638
Attachment #8536079 - Flags: review?(dburns) → review+
https://hg.mozilla.org/mozilla-central/rev/13d74279980e
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Attachment #8536079 - Attachment is obsolete: true
Attachment #8618920 - Flags: review+
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: