Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SecurityError: Blocked a frame with origin X from accessing a frame with origin Y

    I've posted a issue to the smartgwt forum (http://forums.smartclient.com/showthread.php?t=28152) , after stepping through the code, I found the following issue in ISC_Core.js (Version v8.3p_2013-09-21/Pro Deployment (2013-09-21)
    together with google chrome version 30.0.1599.69 m

    The following code on line 23946 throws a error when one of the iframes has got SSL security
    Code:
    if (this._windowHandle == null) {
        for (var i = 0; i < window.frames.length; i++) {
            var _wh = window.frames[i];
            if (_wh.name == this.getName()) {
                this._windowHandle = _wh;
                break;
            }
        }
    }
    This is because the method _wh.name (or any other method) is not alowed on a SSL frame, and throws a SecurityError: Blocked a frame with origin X from accessing a frame with origin Y

    I've implemented a workaround by browsing through the frames in a reverse order and thereby never reaching my ssl frame:
    Code:
     if (this._windowHandle == null) {
        for (var i = window.frames.length-1; i >= 0; i--) {
            var _wh = window.frames[i];
            if (_wh.name == this.getName()) {
                this._windowHandle = _wh;
                break;
            }
        }
    }
    How can I get this fix in the smartclient build?
    Last edited by meindert; 9 Oct 2013, 05:25.

    #2
    Hello,
    We've fixed it - please pick up the next nightly, 8.3 or 9.0 build (dated Oct 17 or above) to get this fix.

    Regards
    Isomorphic Software

    Comment


      #3
      Hello SmartClient Team,

      We are facing same issue. The build we have is SmartClient Version: v9.0p_2013-08-16/Enterprise Development Only (built 2013-08-16). Can you help us find which patch version we need to use and where to download it from.
      We need a similar build version patch.

      Best Regards,
      Prabhitha Rajidi
      REZ1

      Comment


        #4
        You seem to have missed a patch from 5 years ago by exactly one day (the above post says that the Oct 17 2013 build has the patch and you say you the Oct 16 2013 build). That is astonishingly unlikely, but if true, you can simply download the latest patched version of 9.0 from smartclient.com/builds, using the SmartClient.com account has your Enterprise license assigned.

        If you have lost track of your licensed account, contact our sales team.

        If you want further assistance with this, we do offer commercial support and consulting services.

        Comment

        Working...
        X