Bug 110053 - Gmail/javascript doesn't allow opening of new window
Summary: Gmail/javascript doesn't allow opening of new window
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 3.4.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 21:43 UTC by Avuton Olrich
Modified: 2012-06-18 14:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Resulting html in frozen window. (2.08 KB, text/html)
2007-01-06 21:05 UTC, Martin Fitzpatrick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Avuton Olrich 2005-08-02 21:43:54 UTC
Version:           3.4.2 (using KDE KDE 3.4.2)
Installed from:    Gentoo Packages
Compiler:          GCC-3.4.4 
OS:                Linux

To reproduce:
1. Open gmail in 'Standard Mode'
2. Compose or open an email
3. Click the 'New window' button on the upper right-hand side.

Actual Results:
The window or tab (whichever you have set in your settings) will open, you will see loading on the Left for a second, then it will stay 'Loading' on the right hand side. It will not continue to load the page, as it should.

Page source that it stops on:
<html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Gmail</title><link rel="alternate" type="application/atom+xml" title="Gmail Atom Feed" href="feed/atom" /><script src="?view=page&name=browser&ver=c0d3d44c64799453"></script></head><noscript><font face=arial>JavaScript must be enabled in order for you to use Gmail in standard view. However, it seems JavaScript is either disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then <a href="">try again</a>. <p>To use Gmail's basic HTML view, which does not require JavaScript, <a href="?ui=html&zy=n">click here</a>.</p></font></noscript><script>
<!--
var fs_time = (new Date()).getTime();function wfs() {try {if (parent != window && parent.wfs) {return false;}} catch(e) {}if (top.location.href.indexOf('nocheckbrowser') != -1) {return true;}if (!is_browser_supported) {top.location = '?ui=html&zy=j';return false;}var testcookie = 'jscookietest=valid';document.cookie = testcookie;if (document.cookie.indexOf(testcookie) == -1) {top.location = 'html/nocookies.html';return false;}document.cookie = testcookie + ';expires=' + new Date(0).toGMTString();var agt = navigator.userAgent.toLowerCase();if (agt.indexOf('msie')!= -1 && document.all &&agt.indexOf('opera') == -1 && agt.indexOf('mac') == -1) {eval("var control = (agt.indexOf('msie 5') != -1) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';try {new ActiveXObject(control);} catch (e) {top.location = 'html/noactivex.html';}");}return true;}function lj() {js.location.replace('?view=page&name=js&ver=a1cbe713a45d132f');}if (wfs()) {document.write("<frameset onload=lj() rows=\"100%,*\" border=0><frame name=main src=html/loading.html frameborder=0 noresize scrolling=no><frame name=js src=html/loading.html frameborder=0 noresize></frameset>");}
//-->
</script></html>

Versions: 
This happens in version 3.4.1 and 3.4.2 versions with firefox emulation (with the Bug #104352 patch).
Comment 1 Avuton Olrich 2005-10-23 10:18:59 UTC
In 3.5.0 beta2 this behaviour changes a bit with gmail, here is the source of the page where activity stops after trying to open an email or compose an email in a new window (as directed above):

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gmail</title>
<link rel="alternate" type="application/atom+xml" title="Gmail Atom Feed" href="feed/atom" />
<script src="?view=page&amp;name=browser&amp;ver=c0d3d44c64799453"></script>
</head>
<noscript><font face=arial>JavaScript must be enabled in order for you to use Gmail in standard view. However, it seems JavaScript is either disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then <a href="">try again</a>. <p>To use Gmail's basic HTML view, which does not require JavaScript, <a href="?ui=html&zy=n">click here</a>.</p></font></noscript>
<script>
<!--

var fs_time=(new Date()).getTime();




function wfs() {


try {
if (parent!=window && parent.wfs) {
return false;
}
}catch(e){}



if (top.location.href.indexOf('nocheckbrowser')!=-1) {
return true;
}




if (!is_browser_supported) {
top.location="?ui=html&zy=j";
return false;
}


var testcookie='jscookietest=valid';
document.cookie=testcookie;
if (document.cookie.indexOf(testcookie)==-1) {
top.location="html\x2Fnocookies.html";
return false;
}

document.cookie=testcookie+';expires=Thu, 01 Jan 1970 00:00:00 GMT';


var agt=navigator.userAgent.toLowerCase();


if (agt.indexOf('msie')!=-1 && document.all &&
agt.indexOf('opera')==-1 && agt.indexOf('mac')==-1) {


eval('var c=(agt.indexOf("msie 5")!=-1)?"Microsoft.XMLHTTP":"Msxml2.XMLHTTP";try{new ActiveXObject(c);}catch(e){top.location="html\x2Fnoactivex.html";}');
}


return true;

}

function lj() {

js.location.replace("?view=page&name=js&ver=d622eaa64e56bb42");

}


if (wfs()) {
document.write('<frameset onload=lj() rows="100%,*" border=0><frame name=main src="html/loading.html" frameborder=0 noresize scrolling=no><frame name=js src="html/loading.html" frameborder=0 noresize></frameset>');
}
-->
</script>
</html>
Comment 2 Martin Fitzpatrick 2007-01-06 21:05:06 UTC
Created attachment 19136 [details]
Resulting html in frozen window.

Confirmed on KDE 3.5.5 / Kubuntu 6.10 producing the resulting attached file in
stalled window.  Using Firefox 1.5.0.4 as UserAgent.
Comment 3 Stefan Monov 2007-01-07 01:16:34 UTC
I can reproduce on 3.5.5.
Comment 4 Christophe Marin 2008-04-17 12:46:44 UTC
Confirmed in trunk (r. 798035)
Comment 5 Myriam Schweingruber 2012-06-18 14:05:02 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.