Title: [114122] trunk
- Revision
- 114122
- Author
- commit-qu...@webkit.org
- Date
- 2012-04-13 06:14:08 -0700 (Fri, 13 Apr 2012)
Log Message
[BlackBerry] Sign in cookie for ESPN.com does not retain login account (for fantasy sports).
https://bugs.webkit.org/show_bug.cgi?id=83760
Patch by Jason Liu <jason....@torchmobile.com.cn> on 2012-04-13
Reviewed by George Staikos.
.:
* ManualTests/blackberry/http-cookie-database-set.php: Added.
* ManualTests/blackberry/http-cookie-database-update.php: Added.
Source/WebCore:
When we update cookies' database, protocol shouldn't be checked since it is not a cookie's key.
ESPN.com's https cookies should replace old http cookies if they have the same keys(name, path, domain).
We must restart the browser to test, so have to write a manual test case.
Test: ManualTests/blackberry/http-cookie-database-set.php
* platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp:
(WebCore::CookieDatabaseBackingStore::invokeOpen):
Modified Paths
Added Paths
Diff
Modified: trunk/ChangeLog (114121 => 114122)
--- trunk/ChangeLog 2012-04-13 13:06:19 UTC (rev 114121)
+++ trunk/ChangeLog 2012-04-13 13:14:08 UTC (rev 114122)
@@ -1,3 +1,13 @@
+2012-04-13 Jason Liu <jason....@torchmobile.com.cn>
+
+ [BlackBerry] Sign in cookie for ESPN.com does not retain login account (for fantasy sports).
+ https://bugs.webkit.org/show_bug.cgi?id=83760
+
+ Reviewed by George Staikos.
+
+ * ManualTests/blackberry/http-cookie-database-set.php: Added.
+ * ManualTests/blackberry/http-cookie-database-update.php: Added.
+
2012-04-13 Thiago Marcos P. Santos <thiago.san...@intel.com>
[EFL] Add API for color chooser
Added: trunk/ManualTests/blackberry/http-cookie-database-set.php (0 => 114122)
--- trunk/ManualTests/blackberry/http-cookie-database-set.php (rev 0)
+++ trunk/ManualTests/blackberry/http-cookie-database-set.php 2012-04-13 13:14:08 UTC (rev 114122)
@@ -0,0 +1,14 @@
+<?php if (isset($_COOKIE["db_cookie"])) {
+ if ($_COOKIE["db_cookie"] == "https_cookie")
+ echo 'PASS';
+ else
+ echo 'FAIL';
+ } else {
+ header("Set-Cookie: db_cookie = http_cookie; expires=Thu, 12-Apr-2312 08:32:29 GMT;");
+ $path = str_replace("http-cookie-database-set.php", "http-cookie-database-update.php", $_SERVER["PHP_SELF"]);
+ $newurl = 'https://'.$_SERVER["HTTP_HOST"].$path;
+ $location = 'Location:'.$newurl;
+ header($location);
+ }
+?>
+
Added: trunk/ManualTests/blackberry/http-cookie-database-update.php (0 => 114122)
--- trunk/ManualTests/blackberry/http-cookie-database-update.php (rev 0)
+++ trunk/ManualTests/blackberry/http-cookie-database-update.php 2012-04-13 13:14:08 UTC (rev 114122)
@@ -0,0 +1,9 @@
+<?php
+ header('Set-Cookie: db_cookie = https_cookie; expires=Thu, 12-Apr-2312 08:32:29 GMT;');
+ echo 'Test updating of cookies\' database. It is for https://bugs.webkit.org/show_bug.cgi?id=83760.<br>';
+ echo 'To run this test, http-cookie-database-set.php must be served over http and http-cookie-database-update.php must be served over https.<br>';
+ echo 'Test steps:<br>';
+ echo '1. Load http-cookie-database-set.php. (If you load http-cookie-database-update.php directly in this step, please clear cookies and load http-cookie-database-set.php to finish this step.<br>';
+ echo '2. Restart the browser and load http-cookie-database-set.php again to see the result.<br>';
+
+?>
Modified: trunk/Source/WebCore/ChangeLog (114121 => 114122)
--- trunk/Source/WebCore/ChangeLog 2012-04-13 13:06:19 UTC (rev 114121)
+++ trunk/Source/WebCore/ChangeLog 2012-04-13 13:14:08 UTC (rev 114122)
@@ -1,3 +1,20 @@
+2012-04-13 Jason Liu <jason....@torchmobile.com.cn>
+
+ [BlackBerry] Sign in cookie for ESPN.com does not retain login account (for fantasy sports).
+ https://bugs.webkit.org/show_bug.cgi?id=83760
+
+ Reviewed by George Staikos.
+
+ When we update cookies' database, protocol shouldn't be checked since it is not a cookie's key.
+ ESPN.com's https cookies should replace old http cookies if they have the same keys(name, path, domain).
+
+ We must restart the browser to test, so have to write a manual test case.
+
+ Test: ManualTests/blackberry/http-cookie-database-set.php
+
+ * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp:
+ (WebCore::CookieDatabaseBackingStore::invokeOpen):
+
2012-04-12 Jocelyn Turcotte <jocelyn.turco...@nokia.com>
[Qt] Use QQuickFlickable::setPixelAligned instead of doing pixel-alignment when rendering.
Modified: trunk/Source/WebCore/platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp (114121 => 114122)
--- trunk/Source/WebCore/platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp 2012-04-13 13:06:19 UTC (rev 114121)
+++ trunk/Source/WebCore/platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp 2012-04-13 13:14:08 UTC (rev 114122)
@@ -238,7 +238,7 @@
String updateQuery("UPDATE ");
updateQuery += m_tableName;
// The where statement is chosen to match CookieMap key.
- updateQuery += " SET name = ?1, value = ?2, host = ?3, path = ?4, expiry = ?5, lastAccessed = ?6, isSecure = ?7, isHttpOnly = ?8, creationTime = ?9, protocol = ?10 where protocol = ?10 and name = ?1 and host = ?3 and path = ?4;";
+ updateQuery += " SET name = ?1, value = ?2, host = ?3, path = ?4, expiry = ?5, lastAccessed = ?6, isSecure = ?7, isHttpOnly = ?8, creationTime = ?9, protocol = ?10 where name = ?1 and host = ?3 and path = ?4;";
m_updateStatement = new SQLiteStatement(m_db, updateQuery);
if (m_updateStatement->prepare()) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes