[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.17-1283-gcf603cf
eric at webkit.org
eric at webkit.org
Wed Jan 6 00:09:19 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit 17488c69d7094e495591e57f84053bb35d1cab9a
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Dec 29 16:51:14 2009 +0000
2009-12-29 Alexander Pavlov <apavlov at chromium.org>
Reviewed by Timothy Hatcher.
Discard port from cookie domain when matching cookies.
WebKit cookies do not hold the port information, so we should match only hostnames.
https://bugs.webkit.org/show_bug.cgi?id=31787
* inspector/front-end/inspector.js:
(WebInspector.updateResource):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 7bd26f0..1582de8 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2009-12-29 Alexander Pavlov <apavlov at chromium.org>
+
+ Reviewed by Timothy Hatcher.
+
+ Discard port from cookie domain when matching cookies.
+
+ WebKit cookies do not hold the port information, so we should match only hostnames.
+ https://bugs.webkit.org/show_bug.cgi?id=31787
+
+ * inspector/front-end/inspector.js:
+ (WebInspector.updateResource):
+
2009-12-29 Laszlo Gombos <laszlo.1.gombos at nokia.com>
Reviewed by Kenneth Rohde Christiansen.
diff --git a/WebCore/inspector/front-end/inspector.js b/WebCore/inspector/front-end/inspector.js
index 47759ea..e6ae7ff 100644
--- a/WebCore/inspector/front-end/inspector.js
+++ b/WebCore/inspector/front-end/inspector.js
@@ -985,9 +985,12 @@ WebInspector.updateResource = function(identifier, payload)
if (resource.mainResource)
this.mainResource = resource;
- var match = payload.documentURL.match(/^(http[s]?|file):\/\/([\/]*[^\/]+)/i);
- if (match)
- this.addCookieDomain(match[1].toLowerCase() === "file" ? "" : match[2]);
+ var match = payload.documentURL.match(WebInspector.URLRegExp);
+ if (match) {
+ var protocol = match[1].toLowerCase();
+ if (protocol.indexOf("http") === 0 || protocol === "file")
+ this.addCookieDomain(protocol === "file" ? "" : match[2]);
+ }
}
if (payload.didResponseChange) {
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list