Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 385 * @param {!Resources.DatabaseModel.DatabaseAddedEvent} event | 385 * @param {!Resources.DatabaseModel.DatabaseAddedEvent} event |
| 386 */ | 386 */ |
| 387 _databaseAdded(event) { | 387 _databaseAdded(event) { |
| 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 addDocumentURL(url) { | 393 addDocumentURL(url) { |
| 394 var parsedURL = url.asParsedURL(); | 394 var parsedURL = url.asParsedURL(); |
| 395 if (!parsedURL) | 395 if (!parsedURL || (parsedURL.scheme !== 'http' && parsedURL.scheme !== 'http s')) |
|
dgozman
2017/01/24 01:23:25
Let's whitelist file://, just in case someone runs
| |
| 396 return; | 396 return; |
| 397 | 397 |
| 398 var domain = parsedURL.securityOrigin(); | 398 var domain = parsedURL.securityOrigin(); |
| 399 if (!this._domains[domain]) { | 399 if (!this._domains[domain]) { |
| 400 this._domains[domain] = true; | 400 this._domains[domain] = true; |
| 401 var cookieDomainTreeElement = new Resources.CookieTreeElement(this, domain ); | 401 var cookieDomainTreeElement = new Resources.CookieTreeElement(this, domain ); |
| 402 this.cookieListTreeElement.appendChild(cookieDomainTreeElement); | 402 this.cookieListTreeElement.appendChild(cookieDomainTreeElement); |
| 403 } | 403 } |
| 404 } | 404 } |
| 405 | 405 |
| (...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2056 | 2056 |
| 2057 this.element.classList.add('storage-view'); | 2057 this.element.classList.add('storage-view'); |
| 2058 this._emptyWidget = new UI.EmptyWidget(''); | 2058 this._emptyWidget = new UI.EmptyWidget(''); |
| 2059 this._emptyWidget.show(this.element); | 2059 this._emptyWidget.show(this.element); |
| 2060 } | 2060 } |
| 2061 | 2061 |
| 2062 setText(text) { | 2062 setText(text) { |
| 2063 this._emptyWidget.text = text; | 2063 this._emptyWidget.text = text; |
| 2064 } | 2064 } |
| 2065 }; | 2065 }; |
| OLD | NEW |