ICEfaces
  1. ICEfaces
  2. ICE-7918

blockUIOnSubmit causes a JavaScript error when calling window.close() on a modal window in IE8

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P03
    • Fix Version/s: EE-1.8.2.GA_P04
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      IE8 version 8.0.76xx, blockUIOnSubmit=true, ICEfaces EE 1.8.2 P03, trunk

      Description

      An "Access is Denied" JavaScript error is shown when closing a modal window dialog in IE8. This dialog is opened by calling the following JavaScript: "window.showModalDialog(....);"

      The call that closes the dialog is the following: "window.close();"

      This is only an issue when the blockUIOnSubmit=true and only in the more recent versions of IE8.

      8.0.7600.16385 - Shows the error

      8.0.6001.18702 - Doesn't show the error

      My guess is that the UI blocker code is interfering with the modal window dialog or vice versa.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attaching test case and screen shot that shows JS error.

        Steps to reproduce:

        • Load welcomeICEfaces.iface
        • Click on the open button
        • Click on the close button for the modal window.
        Show
        Arran Mccullough added a comment - Attaching test case and screen shot that shows JS error. Steps to reproduce: Load welcomeICEfaces.iface Click on the open button Click on the close button for the modal window.
        Hide
        Ken Fyten added a comment -

        Note that this issue only occurs on the more recent IE8 8.0.7.x, which appears to only be available on Windows 7.

        Show
        Ken Fyten added a comment - Note that this issue only occurs on the more recent IE8 8.0.7.x, which appears to only be available on Windows 7.
        Hide
        Arran Mccullough added a comment -

        Link to the MS Virtual PC IE App Compatibility Images: http://www.microsoft.com/download/en/details.aspx?id=11575

        Show
        Arran Mccullough added a comment - Link to the MS Virtual PC IE App Compatibility Images: http://www.microsoft.com/download/en/details.aspx?id=11575
        Hide
        Mircea Toma added a comment -

        It seems that IE sees the dynamically created iframe (our status indicator overlay) as being part of a different domain . Modifying the iframe's URL would create regressions for issues we already fixed by generating the frame's content using a pseudo-URL.

        The solution applied was to capture and ignore the exception thrown by the popup window when closed. Since the error has no functional impact (the popup window is closed anyway) this can be considered a reasonable fix.

        Show
        Mircea Toma added a comment - It seems that IE sees the dynamically created iframe (our status indicator overlay) as being part of a different domain . Modifying the iframe's URL would create regressions for issues we already fixed by generating the frame's content using a pseudo-URL. The solution applied was to capture and ignore the exception thrown by the popup window when closed. Since the error has no functional impact (the popup window is closed anyway) this can be considered a reasonable fix.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: