When pat-autofocus is used on a page that runs in an iframe/object context, then most likely it's not desired to apply autofocus as it takes control away from the host page. Ideally, pat-autofocus would detect that it's running in an an iframe/object context and in that case not execute.