From: SourceForge.net <no...@so...> - 2003-08-22 16:25:14
|
Bugs item #793340, was opened at 2003-08-22 18:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=793340&group_id=47038 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alexei Goussev (gousseff) Assigned to: Nobody/Anonymous (nobody) Summary: 'about:blank' and '' can not be used for frames and windows Initial Comment: 'about:blank' and '' can not be used ínstead of url for frames and windows. Following htmls cause an exception: 1. <frame name="results" title="Results" scrolling="yes" marginwidth="0" marginheight="0" border="1" framespacing="1" noresize src="about:blank"> 2a. <a href="http://htmlunit.sourceforge.net" target="htmlunit" title="HtmlUnit (Presented in a New Window)" onmouseover="javascript:window.status='HtmlUnit (Presented in a New Window)'; return true" onfocus="javascript:window.status='HtmlUnit (Presented in a New Window)'; return true" onmouseout="javascript: window.status=''; return true" onblur="javascript: window.status=''; return true" onclick="javascript:var win = window.open ('','htmlunit','height=500,width=750,top='+ ((screen.height-(screen.height/1.618))-(500/2))+',left='+ ((screen.width-750)/2)+',scrollbars,resizable');win.focus ()">HtmlUnit</a> 2b. <a href="http://htmlunit.sourceforge.net" target="htmlunit" title="HtmlUnit (Presented in a New Window)" onmouseover="javascript:window.status='HtmlUnit (Presented in a New Window)'; return true" onfocus="javascript:window.status='HtmlUnit (Presented in a New Window)'; return true" onmouseout="javascript: window.status=''; return true" onblur="javascript: window.status=''; return true" onclick="javascript:var win = window.open ('about:blank','htmlunit','height=500,width=750,top='+ ((screen.height-(screen.height/1.618))-(500/2))+',left='+ ((screen.width-750)/2)+',scrollbars,resizable');win.focus ()">HtmlUnit</a> Second example executes as following: 1. empty window named 'htmlunit' is opened 2. JavaScript does not return true -> url specified by href is called and received content is passed than to target, which is a previously opened 'htmlunit' window in example 2a an exception will occur on win.focus(), cause there will be no ScriptObject for win (win==null) in example 2b an exception will be thrown as jsFunction_open in ...Window will try to create an url from 'about:blank' ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=793340&group_id=47038 |