summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame.gyp
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 02:57:03 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 02:57:03 +0000
commit4c3046b09abd049562d543fa8dba1cba63c62b5a (patch)
tree4d7e7c087ee541234f0d550856959ee499eb931a /chrome_frame/chrome_frame.gyp
parent067b9286c41061489ed97167d69cbe6801cd09ef (diff)
downloadchromium_src-4c3046b09abd049562d543fa8dba1cba63c62b5a.zip
chromium_src-4c3046b09abd049562d543fa8dba1cba63c62b5a.tar.gz
chromium_src-4c3046b09abd049562d543fa8dba1cba63c62b5a.tar.bz2
Deleting cookies by setting the expires attribute on them with an empty value would not work in ChromeFrame
with the host network stack enabled. When we receive a response in the host browser (IE) we send over the response headers which include the Set-Cookie header and a list of cookies retreived via the InternetGetCookie API. We call this API to retrieve the persistent cookies and send them over to Chrome. However this API returns session cookies as well as persistent cookies. There is no documented way to return only persistent cookies from IE. As a result we would end up setting duplicate cookies in Chrome, which caused this issu.e. To workaround this issue when we receive the response in the url request automation job which handles ChromeFrame network requests, we strip out duplicate cookies sent via InternetGetCookie. When a script deletes a cookie we now handle it correctly in IE and set the data to an empty string. However this does not delete the cookie. When such cookies show up in Chrome, we strip them out as well. Fixes bug http://code.google.com/p/chromium/issues/detail?id=30786 The changes to chrome_frame_npapi.cc/.h are to move the NPAPI functions to the chrome_frame namespace as they conflict with similar functions in NACL. Added the DeleteCookie function to the CookieStore interface, which I think missed out by oversight. Bug=30786 Test=Covered by ChromeFrame unit tests. I also added a unit test to test the newly added URLRequestAutomationJob::IsCookiePresentInCookieHeader function Review URL: http://codereview.chromium.org/518054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame.gyp')
-rw-r--r--chrome_frame/chrome_frame.gyp5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame.gyp b/chrome_frame/chrome_frame.gyp
index 33f4a4a..764ec79 100644
--- a/chrome_frame/chrome_frame.gyp
+++ b/chrome_frame/chrome_frame.gyp
@@ -108,7 +108,11 @@
'type': 'executable',
'dependencies': [
'../build/temp_gyp/googleurl.gyp:googleurl',
+ '../chrome/chrome.gyp:browser',
'../chrome/chrome.gyp:common',
+ '../chrome/chrome.gyp:debugger',
+ '../chrome/chrome.gyp:nacl',
+ '../chrome/chrome.gyp:renderer',
'../chrome/chrome.gyp:utility',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
@@ -617,6 +621,7 @@
'sources': [
'chrome_frame_npapi.rgs',
'chrome_frame_npapi_entrypoints.cc',
+ 'chrome_frame_npapi_entrypoints.h',
'chrome_tab.cc',
'chrome_tab.def',
'chrome_tab.h',