use-ownerGlobal

Require .ownerGlobal instead of .ownerDocument.defaultView.

Examples of incorrect code for this rule:

aEvent.target.ownerDocument.defaultView;
this.DOMPointNode.ownerDocument.defaultView.getSelection();

Examples of correct code for this rule:

aEvent.target.ownerGlobal;
this.DOMPointNode.ownerGlobal.getSelection();