Closed Bug 1334199 Opened 7 years ago Closed 7 years ago

Omit getComputedStyle's second argument when it's falsy

Categories

(Firefox :: General, defect)

53 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 54
Tracking Status
firefox54 --- fixed

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(3 files)

Attached file xpcshell script
getComputedStyle's second parameter has been optional since bug 567350 / Gecko 2.0. Let's cleanup :-).
I fixed by hand a few occurences that my script missed:
- in xbl bindings, JS code outside of CDATA sections
- in devtools/client/inspector/markup/test because my exclusion path was a bit larger than needed (I think I only needed to exclude files with a lib_ prefix).
Attachment #8830823 - Flags: review?(jaws)
Assignee: nobody → florian
Status: NEW → ASSIGNED
Attachment #8830828 - Flags: review?(jaws)
Attachment #8830823 - Flags: review?(jaws) → review+
Comment on attachment 8830828 [details] [diff] [review]
script-generated patch

Review of attachment 8830828 [details] [diff] [review]:
-----------------------------------------------------------------

rs=me
Attachment #8830828 - Flags: review?(jaws) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/44495d8b46baf4d497ff927a7a804e77728ed09f
Bug 1334199 - make the no-useless-parameters eslint rule report getComputedStyle's second argument when it's falsy, r=jaws.

https://hg.mozilla.org/integration/mozilla-inbound/rev/d02fd33024b876d9a5c7f4afa9bd103ed9d58e74
Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws.
https://hg.mozilla.org/mozilla-central/rev/44495d8b46ba
https://hg.mozilla.org/mozilla-central/rev/d02fd33024b8
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: