Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-59268

Poller.js should be checking focus on the window not the document.

    Details

      Description

      When multiple browser windows are open to Liferay, Poller freezes polling on the window that is not focused. In certain browsers, poller fails to unfreeze itself when you focus the tab, because it checks document focus which does not always fire.

      Firefox: A.getDoc().on('focus') fires whenever the tab gets focused.
      Chrome: A.getDoc().on('focus') only fires when focusable elements are clicked.
      Safari: A.getDoc().on('focus') never fires.
      IE11: A.getDoc().on('focus') only fires when clicking a focusable element, or switching focus from a different application. It does not fire when switching tabs.

      All of these browsers consistently fire A.getWin().on('focus').

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              evan.thibodeau Evan Thibodeau
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 3 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 Alpha 2