OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 if (cookie.type() === WebInspector.Cookie.Type.Request) { | 244 if (cookie.type() === WebInspector.Cookie.Type.Request) { |
245 data.domain = WebInspector.UIString("N/A"); | 245 data.domain = WebInspector.UIString("N/A"); |
246 data.path = WebInspector.UIString("N/A"); | 246 data.path = WebInspector.UIString("N/A"); |
247 data.expires = WebInspector.UIString("N/A"); | 247 data.expires = WebInspector.UIString("N/A"); |
248 } else { | 248 } else { |
249 data.domain = cookie.domain() || ""; | 249 data.domain = cookie.domain() || ""; |
250 data.path = cookie.path() || ""; | 250 data.path = cookie.path() || ""; |
251 if (cookie.maxAge()) | 251 if (cookie.maxAge()) |
252 data.expires = Number.secondsToString(parseInt(cookie.maxAge(),
10)); | 252 data.expires = Number.secondsToString(parseInt(cookie.maxAge(),
10)); |
253 else if (cookie.expires()) | 253 else if (cookie.expires()) |
254 data.expires = new Date(cookie.expires()).toGMTString(); | 254 data.expires = new Date(cookie.expires()).toISOString(); |
255 else | 255 else |
256 data.expires = WebInspector.UIString("Session"); | 256 data.expires = WebInspector.UIString("Session"); |
257 } | 257 } |
258 data.size = cookie.size(); | 258 data.size = cookie.size(); |
259 const checkmark = "\u2713"; | 259 const checkmark = "\u2713"; |
260 data.httpOnly = (cookie.httpOnly() ? checkmark : ""); | 260 data.httpOnly = (cookie.httpOnly() ? checkmark : ""); |
261 data.secure = (cookie.secure() ? checkmark : ""); | 261 data.secure = (cookie.secure() ? checkmark : ""); |
262 | 262 |
263 var node = new WebInspector.DataGridNode(data); | 263 var node = new WebInspector.DataGridNode(data); |
264 node.cookie = cookie; | 264 node.cookie = cookie; |
(...skipping 12 matching lines...) Expand all Loading... |
277 }, | 277 }, |
278 | 278 |
279 _refresh: function() | 279 _refresh: function() |
280 { | 280 { |
281 if (this._refreshCallback) | 281 if (this._refreshCallback) |
282 this._refreshCallback(); | 282 this._refreshCallback(); |
283 }, | 283 }, |
284 | 284 |
285 __proto__: WebInspector.VBox.prototype | 285 __proto__: WebInspector.VBox.prototype |
286 } | 286 } |
OLD | NEW |