Changeset 56840 in webkit


Ignore:
Timestamp:
Mar 31, 2010 7:45:28 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-31 Mattias Nissler <mnissler@google.com>

Reviewed by Pavel Feldman.

Allow generic resource URLs for cookie handling in the inspector. This
enables display of all cookies, not only those that are associated
with resources accessed through http, https or file.
https://bugs.webkit.org/show_bug.cgi?id=36877

  • inspector/front-end/CookieItemsView.js: (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
  • inspector/front-end/DOMAgent.js: (WebInspector.Cookies.cookieMatchesResourceURL):
  • inspector/front-end/inspector.js: (WebInspector.updateResource):
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r56834 r56840  
     12010-03-31  Mattias Nissler  <mnissler@google.com>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Allow generic resource URLs for cookie handling in the inspector. This
     6        enables display of all cookies, not only those that are associated
     7        with resources accessed through http, https or file.
     8        https://bugs.webkit.org/show_bug.cgi?id=36877
     9
     10        * inspector/front-end/CookieItemsView.js:
     11        (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
     12        * inspector/front-end/DOMAgent.js:
     13        (WebInspector.Cookies.cookieMatchesResourceURL):
     14        * inspector/front-end/inspector.js:
     15        (WebInspector.updateResource):
     16
    1172010-03-30  Jeremy Orlow  <jorlow@chromium.org>
    218
  • trunk/WebCore/inspector/front-end/CookieItemsView.js

    r54436 r56840  
    123123        for (var id in WebInspector.resources) {
    124124            var resource = WebInspector.resources[id];
    125             var match = resource.documentURL.match(WebInspector.URLRegExp);
     125            var match = resource.documentURL.match(WebInspector.GenericURLRegExp);
    126126            if (match && match[2] === this._cookieDomain)
    127127                resourceURLsForDocumentURL.push(resource.url);
  • trunk/WebCore/inspector/front-end/DOMAgent.js

    r56697 r56840  
    456456WebInspector.Cookies.cookieMatchesResourceURL = function(cookie, resourceURL)
    457457{
    458     var match = resourceURL.match(WebInspector.URLRegExp);
     458    var match = resourceURL.match(WebInspector.GenericURLRegExp);
    459459    if (!match)
    460460        return false;
  • trunk/WebCore/inspector/front-end/inspector.js

    r56732 r56840  
    10951095            this.mainResource = resource;
    10961096
    1097         var match = payload.documentURL.match(WebInspector.URLRegExp);
     1097        var match = payload.documentURL.match(WebInspector.GenericURLRegExp);
    10981098        if (match) {
    10991099            var protocol = match[1].toLowerCase();
    1100             if (protocol.indexOf("http") === 0 || protocol === "file")
    1101                 this._addCookieDomain(protocol === "file" ? "" : match[2]);
     1100            this._addCookieDomain(match[2]);
    11021101        }
    11031102    }
Note: See TracChangeset for help on using the changeset viewer.