Make focus detection in pager more general using focusin/focusout on the...

... container instead of on specific elements within the container. See Bugzilla #833327. https://bugzilla.mozilla.org/show_bug.cgi?id=833327