ICEfaces
  1. ICEfaces
  2. ICE-11131

IE focus issue when using multiple browser windows w/Java Applet

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P02
    • Fix Version/s: EE-3.3.0.GA_P02
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      IE11, Java Applets, EE 3.3.0 P02

      Description

      A customer has an issue with focus on IE11 when opening new browser windows. Each window/page has a Java Applet which isn't displayed but is included in the xhtml code.

      The issue is that when a new window is opened, focus if set back to the parent window.

      1. ICE-10384.patch
        0.8 kB
        Mircea Toma
      2. ICE-10555.patch
        1 kB
        Mircea Toma
      3. welcomeICEfaces.xhtml
        4 kB
        Mircea Toma

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that reproduces the issue.

        Steps:

        • Load welcomeICEfaces.jsf in IE11
        • Once page is finished loading, click the "Section 3 New Window" button. A new browser window is opened.
        • Instead of the new window keeping focus, the parent window gets focus on the update.

        Note: To reproduce Java needs to be installed on the browser. To check with the following link: https://www.java.com/en/download/installed.jsp

        Show
        Arran Mccullough added a comment - Attached test case that reproduces the issue. Steps: Load welcomeICEfaces.jsf in IE11 Once page is finished loading, click the "Section 3 New Window" button. A new browser window is opened. Instead of the new window keeping focus, the parent window gets focus on the update. Note: To reproduce Java needs to be installed on the browser. To check with the following link: https://www.java.com/en/download/installed.jsp
        Hide
        Mircea Toma added a comment -

        The only difference that I can see is an extra request for updates issued by the parent window after the Section 3 New Window button is clicked. After some research this points to the last commit for issue ICE-10384.

        Show
        Mircea Toma added a comment - The only difference that I can see is an extra request for updates issued by the parent window after the Section 3 New Window button is clicked. After some research this points to the last commit for issue ICE-10384 .
        Hide
        Mircea Toma added a comment -

        Back-ported fix "ICE-10384 Detect IE11 also to make sure the 'storage' event callback is not invoked in the window triggering the events".

        Show
        Mircea Toma added a comment - Back-ported fix " ICE-10384 Detect IE11 also to make sure the 'storage' event callback is not invoked in the window triggering the events" .
        Hide
        Mircea Toma added a comment -

        Need to back port the rest of commits for ICE-10384 to reproduce the behaviour found in EE-3.3.0-P03.

        Show
        Mircea Toma added a comment - Need to back port the rest of commits for ICE-10384 to reproduce the behaviour found in EE-3.3.0-P03.
        Hide
        Mircea Toma added a comment - - edited

        Applied ICE-10705 fix to ensure blocking connection is re-established when closing the popup window. This in effects reverts ICE-10555 patch.

        Show
        Mircea Toma added a comment - - edited Applied ICE-10705 fix to ensure blocking connection is re-established when closing the popup window. This in effects reverts ICE-10555 patch.
        Hide
        Mircea Toma added a comment -

        I attached a modifid version of welcomeICEfaces.xhtml that does not trigger the focus change to parent window anymore. The change moves the formTwo and formThree contents within one form only. This ensures that the parent window update triggered by the window popup is not removing and adding a form to the page. It seems that this adding of the form to the page makes IE11 bring the parent window forward.
        Most probably the production application can be modified to follow this example.

        Show
        Mircea Toma added a comment - I attached a modifid version of welcomeICEfaces.xhtml that does not trigger the focus change to parent window anymore. The change moves the formTwo and formThree contents within one form only. This ensures that the parent window update triggered by the window popup is not removing and adding a form to the page. It seems that this adding of the form to the page makes IE11 bring the parent window forward. Most probably the production application can be modified to follow this example.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: