United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7117621 Nightly(jre8): JSobject API getMember("cookie") is not able to read cookeis properly on IE
7117621 : Nightly(jre8): JSobject API getMember("cookie") is not able to read cookeis properly on IE

Details
Type:
Bug
Submit Date:
2011-12-03
Status:
Closed
Updated Date:
2012-05-10
Project Name:
JDK
Resolved Date:
2012-05-10
Component:
deploy
OS:
windows
Sub-Component:
plugin
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:
8

Related Reports
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
JRE nightly build :http://rehudson.sfbay.sun.com:8080/hudson/view/deploy/job/jdk8_deploy-3-postbuild-windows-i586/ws/bundles/windows-i586/latest/

It has been noticed that JSObject API  JSObject.getWindow(this).getMember("document").getMember("cookie") is not able to read cookies properly on IE browser. No such issue noticed on FF and chrome browser
This is regression in behavior as far as IE browser is concerned

Steps to reproduce:
1) Install jre8 nightly build from above mentioned location
2) Run following applet
http://nicole1.us.oracle.com:8080/plugin_tests/Cookies/Cookies/html/sop/CookieGetSet.html
3) If "MyTest" cookie is not listed inside text area (last line) "cookies found using JSObject browser API: " then bug is reproduced
verified with build b255-94

                                    

Comments
SUGGESTED FIX

http://closedjdk.us.oracle.com/jdk8/deploy/deploy/rev/770c95a5fe23
                                     
2011-12-09
EVALUATION

problem is caused by changing to use InternetSetCookieEx.

7077220: Plugin CookieHandler ignores HttpOnly cookies

Also, the test will only pass even with the above fix backed out on XP and win7 running as admin.

windows cookies API works differently under different permission mode.  Also, the parameters we passed to the API causes difference too.

We need to revisit this in more details in a new CR.

For now, we will back out fix of 7077220.
                                     
2011-12-08
EVALUATION

http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx

we need to read this in details.   (q8/q10/q11 seems interesting)
                                     
2011-12-08



Hardware and Software, Engineered to Work Together