Closed
Bug 1157258
Opened 10 years ago
Closed 10 years ago
Fix null comparisons in driver.js
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(firefox40 fixed)
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: ato, Assigned: ato)
Details
(Keywords: pi-marionette-server)
Attachments
(1 file, 1 obsolete file)
When we compare using == against a variable, which value may theoretically be null, we should use absolute comparison through ===.
jshint and other linters complain about this and can be used to find instances we should fix.
Assignee | ||
Updated•10 years ago
|
Keywords: ateam-marionette-server
Assignee | ||
Updated•10 years ago
|
Summary: Fix null comparisons → Fix null comparisons in driver.js
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → ato
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
/r/7609 - Bug 1157258: Fix null type comparisons in driver.js
Pull down this commit:
hg pull -r fb4179fe8fba5ccfee79984b8b5cdb4d8f40d7ae https://reviewboard-hg.mozilla.org/gecko/
Attachment #8597248 -
Flags: review?(dave.hunt)
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8597248 [details]
MozReview Request: bz://1157258/ato
/r/7609 - Bug 1157258: Fix null type comparisons in driver.js
Pull down this commit:
hg pull -r 9e828854e4a794aba9807ced38532eefafe8531f https://reviewboard-hg.mozilla.org/gecko/
Assignee | ||
Comment 4•10 years ago
|
||
Fixed some issue, new try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=71e816c96e61
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8597248 [details]
MozReview Request: bz://1157258/ato
/r/7609 - Bug 1157258: Fix null type comparisons in driver.js
Pull down this commit:
hg pull -r 2608f3ccba3df22502dc8a9b872109307fbeafeb https://reviewboard-hg.mozilla.org/gecko/
Updated•10 years ago
|
Attachment #8597248 -
Flags: review?(dave.hunt) → review+
Comment 6•10 years ago
|
||
Comment on attachment 8597248 [details]
MozReview Request: bz://1157258/ato
https://reviewboard.mozilla.org/r/7607/#review6391
::: testing/marionette/driver.js:1707
(Diff revision 3)
> - if ((cmd.parameters.id == null) && (cmd.parameters.element == null)) {
> +
Nit: Whitespace.
::: testing/marionette/driver.js:1710
(Diff revision 3)
> + if (cmd.parameters.id == null && !cmd.parameters.hasOwnProperty("element")) {
Why not === null here?
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Assignee | ||
Comment 9•10 years ago
|
||
Attachment #8597248 -
Attachment is obsolete: true
Attachment #8620112 -
Flags: review+
Assignee | ||
Comment 10•10 years ago
|
||
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•