Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: Source/devtools/front_end/components/CookiesTable.js

Issue 300103007: DevTools: Use toISOString instead of toGMTString for dates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/resources/DirectoryContentView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/resources/DirectoryContentView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698