Changeset 139883 in webkit
- Timestamp:
- Jan 16, 2013 8:00:38 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139881 r139883 1 2013-01-16 Andrey Kosyakov <caseq@chromium.org> 2 3 Web Inspector: cookies with empty value are parsed incorrectly 4 https://bugs.webkit.org/show_bug.cgi?id=107012 5 6 Reviewed by Pavel Feldman. 7 8 * inspector/cookie-parser-expected.txt: 9 * inspector/cookie-parser.html: 10 1 11 2013-01-16 Andrey Lushnikov <lushnikov@chromium.org> 2 12 -
trunk/LayoutTests/inspector/cookie-parser-expected.txt
r129118 r139883 131 131 secure : undefined 132 132 } 133 source: cooke1; Path=/; Domain=.example.com; 134 name: , value: cooke1, httpOnly: false, secure: false, session: true, path: /, domain: .example.com, port: undefined, expires: n/a, size: 36 135 { 136 domain : ".example.com" 137 path : "/" 138 } 139 source: cooke1=; Path=/; Domain=.example.com; 140 name: cooke1, value: , httpOnly: false, secure: false, session: true, path: /, domain: .example.com, port: undefined, expires: n/a, size: 37 141 { 142 domain : ".example.com" 143 path : "/" 144 } 133 145 -
trunk/LayoutTests/inspector/cookie-parser.html
r137585 r139883 61 61 InspectorTest.parseAndDumpSetCookie("cooke1 = value; expires = Mon, Oct 18 2010 17:00 GMT+0000; Domain =.example.com\nCookie2 = value2; Path = /foo; DOMAIN = foo.example.com; HttpOnly; Secure; Discard;"); 62 62 InspectorTest.parseAndDumpSetCookie("cooke1 = value; max-age= 1440; Domain =.example.com\n Cookie2 = value2; Path = /foo; DOMAIN = foo.example.com; HttpOnly; Secure; Discard;"); 63 InspectorTest.parseAndDumpSetCookie("cooke1; Path=/; Domain=.example.com;"); 64 InspectorTest.parseAndDumpSetCookie("cooke1=; Path=/; Domain=.example.com;"); 63 65 InspectorTest.completeTest(); 64 66 } -
trunk/Source/WebCore/ChangeLog
r139882 r139883 1 2013-01-16 Andrey Kosyakov <caseq@chromium.org> 2 3 Web Inspector: cookies with empty value are parsed incorrectly 4 https://bugs.webkit.org/show_bug.cgi?id=107012 5 6 Reviewed by Pavel Feldman. 7 8 Require cookie value to be a string, not a non-empty string, before 9 employing legacy compatibility hack of treating bare token as value 10 for the cookie with an empty name. 11 12 * inspector/front-end/CookieParser.js: 13 (WebInspector.CookieParser.prototype._addCookie): 14 1 15 2013-01-16 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 16 -
trunk/Source/WebCore/inspector/front-end/CookieParser.js
r137585 r139883 172 172 // Mozilla bug 169091: Mozilla, IE and Chrome treat single token (w/o "=") as 173 173 // specifying a value for a cookie with empty name. 174 this._lastCookie = keyValue.value? new WebInspector.Cookie(keyValue.key, keyValue.value, type) :174 this._lastCookie = typeof keyValue.value === "string" ? new WebInspector.Cookie(keyValue.key, keyValue.value, type) : 175 175 new WebInspector.Cookie("", keyValue.key, type); 176 176 this._lastCookiePosition = keyValue.position;
Note: See TracChangeset
for help on using the changeset viewer.