Changeset 54351 in webkit


Ignore:
Timestamp:
Feb 4, 2010 10:06:08 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2010-02-04 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Timothy Hatcher.

Web Inspector: group cookies by domains, not frame's domains.

https://bugs.webkit.org/show_bug.cgi?id=34599

  • inspector/front-end/CookieItemsView.js: (WebInspector.CookieItemsView.prototype._cookiesForDomain):
  • inspector/front-end/inspector.js: (WebInspector.updateResource): (WebInspector._addCookieDomain):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r54349 r54351  
     12010-02-04  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Web Inspector: group cookies by domains, not frame's domains.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=34599
     8
     9        * inspector/front-end/CookieItemsView.js:
     10        (WebInspector.CookieItemsView.prototype._cookiesForDomain):
     11        * inspector/front-end/inspector.js:
     12        (WebInspector.updateResource):
     13        (WebInspector._addCookieDomain):
     14
    1152010-02-04  Nate Chapin  <japhet@chromium.org>
    216
  • trunk/WebCore/inspector/front-end/CookieItemsView.js

    r51846 r54351  
    9797        for (var id in WebInspector.resources) {
    9898            var resource = WebInspector.resources[id];
    99             var match = resource.documentURL.match(WebInspector.URLRegExp);
     99            var match = resource.url.match(WebInspector.URLRegExp);
    100100            if (match && match[2] === this._cookieDomain)
    101101                resourceURLsForDocumentURL.push(resource.url);
  • trunk/WebCore/inspector/front-end/inspector.js

    r54240 r54351  
    10471047            this.mainResource = resource;
    10481048
    1049         var match = payload.documentURL.match(WebInspector.URLRegExp);
    1050         if (match) {
    1051             var protocol = match[1].toLowerCase();
    1052             if (protocol.indexOf("http") === 0 || protocol === "file")
    1053                 this.addCookieDomain(protocol === "file" ? "" : match[2]);
    1054         }
     1049        this._addCookieDomain(resource.domain);
    10551050    }
    10561051
     
    11321127}
    11331128
    1134 WebInspector.addCookieDomain = function(domain)
     1129WebInspector._addCookieDomain = function(domain)
    11351130{
    11361131    // Eliminate duplicate domains from the list.
Note: See TracChangeset for help on using the changeset viewer.