Closed Bug 1463012 Opened 7 years ago Closed 7 years ago

Use Node.contains instead of isAncestorOrSelf

Categories

(WebExtensions :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

Attachments

(1 file)

ext-browserAction defines a isAncestorOrSelf function which checks whether a node is an inclusive descendant of another. The native Node.contains does the same, so better use that instead.
See Also: → 1287209
Comment on attachment 8979127 [details] Bug 1463012 - Use Node.contains instead of isAncestorOrSelf https://reviewboard.mozilla.org/r/245358/#review251492 lgtm and the tests from bug 1287209 should cover this.
Attachment #8979127 - Flags: review?(mixedpuppy) → review+
Keywords: checkin-needed
Pushed by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d49624da2d5 Use Node.contains instead of isAncestorOrSelf r=mixedpuppy
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Flags: qe-verify-
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: