Changeset 52623 in webkit
- Timestamp:
- Dec 29, 2009 8:51:14 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r52621 r52623 1 2009-12-29 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Timothy Hatcher. 4 5 Discard port from cookie domain when matching cookies. 6 7 WebKit cookies do not hold the port information, so we should match only hostnames. 8 https://bugs.webkit.org/show_bug.cgi?id=31787 9 10 * inspector/front-end/inspector.js: 11 (WebInspector.updateResource): 12 1 13 2009-12-29 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 14 -
trunk/WebCore/inspector/front-end/inspector.js
r52558 r52623 986 986 this.mainResource = resource; 987 987 988 var match = payload.documentURL.match(/^(http[s]?|file):\/\/([\/]*[^\/]+)/i); 989 if (match) 990 this.addCookieDomain(match[1].toLowerCase() === "file" ? "" : match[2]); 988 var match = payload.documentURL.match(WebInspector.URLRegExp); 989 if (match) { 990 var protocol = match[1].toLowerCase(); 991 if (protocol.indexOf("http") === 0 || protocol === "file") 992 this.addCookieDomain(protocol === "file" ? "" : match[2]); 993 } 991 994 } 992 995
Note: See TracChangeset
for help on using the changeset viewer.