Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2010
    Location
    shanghai
    Posts
    1

    FF9 redirect to a new blank window

    Hi, we are using Lightstreamer, I'm not sure what is the version number of it(in version.number file, it shows "4.3", in build.number file, it shows 1346) and it has been working fine across browsers, recently we upgrade Firefox to 9.0.1 and our web site just turn to a blank page, and the tab title always showing "connecting".

    We found the same issue with other site, a bug is filed in firefox bugzilla:

    https://bugzilla.mozilla.org/show_bug.cgi?id=712949

    Below is the comments in the bug report that describes the issue:

    ================================================== =====================
    j.j. (inactive this year) 2011-12-22 09:41:37 PST
    http://www.quintrics.nl/rtlz/website/ls/lscommons.js

    .if((document.childNodes)&&(!document.all)&&(!navi gator.taintEnabled) ...
    Comment 6Boris Zbarsky (:bz) 2011-12-22 09:45:20 PST
    Yeah, and then inside that clause it UA-sniffs different webkit versions..... and fails to detect us as one and then goes off the rails.
    ================================================== ======================

    As I debug into lspushpage.js, I found that below sentence maybe the cause of this issue:

    function LS_vpA(LS_AOg){document.writeln("<iframe src='about:blank' name='"+LS_AOg+"' style='visibility:hidden;height:1px;'></iframe>");..}

    "document.writeln" actually redirects the page to a blank page, since it does not use document.close(), so the blank page never close, just "connecting..."

    My work around for this is to do the the following :
    var iframe;
    try {
    iframe = document.createElement('<iframe name='+ LS_AOg +' src="about:blank">');
    } catch (ex) {
    iframe = document.createElement('iframe');
    iframe.name = LS_AOg;
    iframe.src = "about:blank";
    }
    iframe.style.visibility = "hidden";
    iframe.style.height = "1px";
    document.body.appendChild(iframe);

    to replace the "document.writeln"

    I'm not sure what regression or impact it will has, hope it can be helpful to you to solve this issue!

    Looking forward to your reply, thanks in advance!!

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    that's indeed a bug in our libraries, btw an upgrade to the latest version would solve it.

    The version you're using is from 2008 and is no longer supported.

    Sorry for the trouble.

 

 

Similar Threads

  1. Replies: 7
    Last Post: June 21st, 2010, 03:59 PM
  2. Disable Window Status
    By chuan_ckc in forum Client SDKs
    Replies: 7
    Last Post: December 17th, 2009, 11:15 AM
  3. IE8 shows a small window
    By markgoldin in forum Client SDKs
    Replies: 5
    Last Post: September 26th, 2008, 12:28 PM
  4. Firefox 1.0 - 1.5.0.1 --> window.setTimeout()
    By Alessandro in forum Client SDKs
    Replies: 1
    Last Post: December 27th, 2006, 03:43 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:33 PM.