Wicket
  1. Wicket
  2. WICKET-3615

ModalWindow does not work in Opera 11.10 and MSIE 6

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.10, 1.4.15, 1.4.17, 1.5-RC3
    • Fix Version/s: 1.4.18, 1.5-RC5
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      ModalWindow does not work properly in Opera 11.10 (and 11.01). Instead of window content, browser's error page is displayed ("Internal communication error: Check that the address is spelled correctly, or try searching for the site." There is "http:///" in the search bar of the error page.) In the error console there is the following message:

      ---------------
      [4/14/2011 10:25:44] JavaScript - http://wicketstuff.org/wicket14/ajax/modal-window.0;jsessionid=C7287377789A7518B81C198CA3D1CE0D
      Event thread: load
      Uncaught exception: ReferenceError: Security error: attempted to write protected variable
      Error thrown at line 414, column 0 in <anonymous function: onload>() in http://wicketstuff.org/wicket14/ajax/resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js:
      this.content.contentWindow.name = this.settings.iframeName;
      called via Function.prototype.apply() from unknown location in <anonymous function: Function.prototype.bind>() in http://wicketstuff.org/wicket14/ajax/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js:
      /* no source available */
      ---------------

      Example in which the error occurs (after clicking the link to open the modal window):
      http://wicketstuff.org/wicket14/ajax/modal-window

      I tried also other versions of Wicket (1.5-RC3, 1.4.15, and 1.4.10) - with the same result.

      Similar situation is with MSIE 6 under some circumstances. If it uses a local proxy server, you get to MSIE's error page "The page cannot be displayed" with "http:///" in the address bar. If proxy server is disabled (by unchecking "Automatically detect settings" in Options/LAN settings; or when connecting the notebook in another network with no proxy server), the content of the modal window displays as expected.

        Activity

        Hide
        Attila Király added a comment -

        Attaching patch to fix issue.

        Tested with Chrome 10, FF 4, IE6, 8, 9, Opera 11.

        Show
        Attila Király added a comment - Attaching patch to fix issue. Tested with Chrome 10, FF 4, IE6, 8, 9, Opera 11.
        Hide
        Juergen Donnerstag added a comment -

        applied to 1.5.

        Show
        Juergen Donnerstag added a comment - applied to 1.5.
        Hide
        Igor Vaynberg added a comment -

        closing, looks like Juergen applied the fix already.

        Show
        Igor Vaynberg added a comment - closing, looks like Juergen applied the fix already.
        Hide
        Johan Compagner added a comment -

        why is this also not applied to 1.4?
        to big of a risk? Or can i apply it to 1.4 also?

        Show
        Johan Compagner added a comment - why is this also not applied to 1.4? to big of a risk? Or can i apply it to 1.4 also?
        Hide
        Martin Grigorov added a comment -

        Please do if you need it in 1.4.x.
        We are trying to release 1.5.0 and soon after it freeze 1.4.x and do only security fixes in it because as you know it is time-consuming to support several branches.

        Show
        Martin Grigorov added a comment - Please do if you need it in 1.4.x. We are trying to release 1.5.0 and soon after it freeze 1.4.x and do only security fixes in it because as you know it is time-consuming to support several branches.
        Hide
        Gabi Boros added a comment -

        the patch seems to fix the error page, but there is still a problem in opera 11 :
        the mouse cursor is wrong inside the dialog, it is set to the resize cursor.
        you can see this here : http://wicketstuff.org/wicket/ajax/modal-window and show a modal
        dialog with panel

        Show
        Gabi Boros added a comment - the patch seems to fix the error page, but there is still a problem in opera 11 : the mouse cursor is wrong inside the dialog, it is set to the resize cursor. you can see this here : http://wicketstuff.org/wicket/ajax/modal-window and show a modal dialog with panel
        Hide
        Martin Grigorov added a comment -

        It is a bug in Opera.
        Open Dragonfly and see that
        "div.wicket-modal div.w_content_1" sets "cursor: auto" but Opera ignores it.

        Not sure this can be workarounded somehow. I tried with IE hack - !important - but it doesn't help.

        Show
        Martin Grigorov added a comment - It is a bug in Opera. Open Dragonfly and see that "div.wicket-modal div.w_content_1" sets "cursor: auto" but Opera ignores it. Not sure this can be workarounded somehow. I tried with IE hack - !important - but it doesn't help.
        Hide
        Johan Compagner added a comment -

        also applied it to 1.4.x

        Show
        Johan Compagner added a comment - also applied it to 1.4.x

          People

          • Assignee:
            Juergen Donnerstag
            Reporter:
            Vojta Minarik
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development