-
January 12th, 2012, 01:57 AM
#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!!
Similar Threads
-
By emiliob in forum Client SDKs
Replies: 7
Last Post: June 21st, 2010, 02:59 PM
-
By chuan_ckc in forum Client SDKs
Replies: 7
Last Post: December 17th, 2009, 10:15 AM
-
By markgoldin in forum Client SDKs
Replies: 5
Last Post: September 26th, 2008, 11:28 AM
-
By Alessandro in forum Client SDKs
Replies: 1
Last Post: December 27th, 2006, 02:43 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:04 AM.
Bookmarks