United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6946479 New browser windows do not properly receive focus under certain conditions. (see 6932209/6927268)
6946479 : New browser windows do not properly receive focus under certain conditions. (see 6932209/6927268)

Details
Type:
Bug
Submit Date:
2010-04-22
Status:
Resolved
Updated Date:
2011-03-29
Project Name:
JDK
Resolved Date:
2010-10-13
Component:
deploy
OS:
solaris_10,windows_xp,windows
Sub-Component:
plugin
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u18,6u20,6u21
Fixed Versions:
6u23

Related Reports
Backport:
Duplicate:
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

Description
After fix for CR 6932209 EBS 11i works correctly with
this fix in place, the html windows now opens in front correctly with the IE
default settings, tabbed browsing turned off and tabbed browsing fully
enabled.
Running EBS R12+ the html window often still opens behind with tabbed
browsing turned off and the default browser settings.
The reason for this change in behaviour appears to be due to the handling of
the second parameter value of web.show_document if it is calling anything
other than "_blank".

This is happening because of an unrecognized second argument for
@ showDocument(userUrl, "SOME_ARGUMENT");
@ If the 2nd argument is not among the supported list it should be treated as
@ "_blank".
@ Refer AppletContext document at
@ http://java.sun.com/j2se/1.4.2/docs/api/java/applet/AppletContext.html
@ .
@ When checking the transaction it fails when showing the following default
@ settings;
@ @ Executing SHOW_DOCUMENT Built-in:
@ @ In Argument 0 - Type: String Value:
@ @
@ http://ap481sun.us.oracle.com:6800/OA_HTML/RF.jsp?function_id=1015531&resp_id=
@
@ @
@ 20420&resp_appl_id=1&security_group_id=0&lang_code=US&params=uVAx-BLSytk5aYd
@ @ In Argument 1 - Type: String Value: APPS_NAVIGATION
@ .
@ Altering the second argument to _blank makes it work correctly;
@ @ In Argument 0 - Type: String Value:
@ @
@ http://ap481sun.us.oracle.com:6800/OA_HTML/RF.jsp?function_id=1015531&resp_id=
@
@ @
@ 20420&resp_appl_id=1&security_group_id=0&lang_code=US&params=uVAx-BLSytk5aYd
@ @ .
@ @ In Argument 1 - Type: String Value: _blank
@ @ .
@

Additional info:

@ The JDK only testcase is implemented here.
@ 1. Click on this URL
@ http://ap481sun.us.oracle.com:6800/OA_HTML/appletX.html
@ 2. Click on GO button.
@ You can see the new HTML page opens behind Applet.
@ ===============================================================
@ There is not much difference than what we gave testcase in JDK bug 6932209
@ Earlier we had in testcase been opening the new HTML page with "_blank"
@ Now in revised testcase we open new window using "APPS_NAVIGATE".
@ .
@ getAppletContext().showDocument(userUrl, "APPS_NAVIGATE");

                                    

Comments
EVALUATION

Named targets posed a problem for showDocument as the native call to IWebBrowser2->navigate was not coded properly. Since javascript calls will never result in correct focus (due to plugin2 being in a separate process) it has been decided to move the bulk of this logic into AxControl.cpp as a result of rectifying the situation with navigate. There are still corner cases where we may not be able to effect focus correctly, but for the most part it offers a solid improvement.
                                     
2010-10-07



Hardware and Software, Engineered to Work Together