Changeset 56840 in webkit
- Timestamp:
- Mar 31, 2010 7:45:28 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56834 r56840 1 2010-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 1 17 2010-03-30 Jeremy Orlow <jorlow@chromium.org> 2 18 -
trunk/WebCore/inspector/front-end/CookieItemsView.js
r54436 r56840 123 123 for (var id in WebInspector.resources) { 124 124 var resource = WebInspector.resources[id]; 125 var match = resource.documentURL.match(WebInspector. URLRegExp);125 var match = resource.documentURL.match(WebInspector.GenericURLRegExp); 126 126 if (match && match[2] === this._cookieDomain) 127 127 resourceURLsForDocumentURL.push(resource.url); -
trunk/WebCore/inspector/front-end/DOMAgent.js
r56697 r56840 456 456 WebInspector.Cookies.cookieMatchesResourceURL = function(cookie, resourceURL) 457 457 { 458 var match = resourceURL.match(WebInspector. URLRegExp);458 var match = resourceURL.match(WebInspector.GenericURLRegExp); 459 459 if (!match) 460 460 return false; -
trunk/WebCore/inspector/front-end/inspector.js
r56732 r56840 1095 1095 this.mainResource = resource; 1096 1096 1097 var match = payload.documentURL.match(WebInspector. URLRegExp);1097 var match = payload.documentURL.match(WebInspector.GenericURLRegExp); 1098 1098 if (match) { 1099 1099 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]); 1102 1101 } 1103 1102 }
Note: See TracChangeset
for help on using the changeset viewer.