Changeset 52623 in webkit


Ignore:
Timestamp:
Dec 29, 2009 8:51:14 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-29 Alexander Pavlov <apavlov@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):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52621 r52623  
     12009-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
    1132009-12-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    214
  • trunk/WebCore/inspector/front-end/inspector.js

    r52558 r52623  
    986986            this.mainResource = resource;
    987987
    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        }
    991994    }
    992995
Note: See TracChangeset for help on using the changeset viewer.