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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js

Issue 2567873002: DevTools: Add ability to add and edit cookies (Closed)
Patch Set: Rebase. Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2013 Samsung Electronics. 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 var databaseTreeElement = new Resources.DatabaseTreeElement(this, event.data base); 388 var databaseTreeElement = new Resources.DatabaseTreeElement(this, event.data base);
389 this._databaseTreeElements.set(event.database, databaseTreeElement); 389 this._databaseTreeElements.set(event.database, databaseTreeElement);
390 this.databasesListTreeElement.appendChild(databaseTreeElement); 390 this.databasesListTreeElement.appendChild(databaseTreeElement);
391 } 391 }
392 392
393 /** 393 /**
394 * @param {!SDK.ResourceTreeFrame} frame 394 * @param {!SDK.ResourceTreeFrame} frame
395 */ 395 */
396 addCookieDocument(frame) { 396 addCookieDocument(frame) {
397 var parsedURL = frame.url.asParsedURL(); 397 var parsedURL = frame.url.asParsedURL();
398 if (!parsedURL) 398 if (!parsedURL || (parsedURL.scheme !== 'http' && parsedURL.scheme !== 'http s' && parsedURL.scheme !== 'file'))
399 return; 399 return;
400 400
401 var domain = parsedURL.securityOrigin(); 401 var domain = parsedURL.securityOrigin();
402 if (!this._domains[domain]) { 402 if (!this._domains[domain]) {
403 this._domains[domain] = true; 403 this._domains[domain] = true;
404 var cookieDomainTreeElement = new Resources.CookieTreeElement(this, frame, domain); 404 var cookieDomainTreeElement = new Resources.CookieTreeElement(this, frame, domain);
405 this.cookieListTreeElement.appendChild(cookieDomainTreeElement); 405 this.cookieListTreeElement.appendChild(cookieDomainTreeElement);
406 } 406 }
407 } 407 }
408 408
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 2062
2063 this.element.classList.add('storage-view'); 2063 this.element.classList.add('storage-view');
2064 this._emptyWidget = new UI.EmptyWidget(''); 2064 this._emptyWidget = new UI.EmptyWidget('');
2065 this._emptyWidget.show(this.element); 2065 this._emptyWidget.show(this.element);
2066 } 2066 }
2067 2067
2068 setText(text) { 2068 setText(text) {
2069 this._emptyWidget.text = text; 2069 this._emptyWidget.text = text;
2070 } 2070 }
2071 }; 2071 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698