Chromium Code Reviews| Index: Source/devtools/front_end/security/SecurityPanel.js |
| diff --git a/Source/devtools/front_end/security/SecurityPanel.js b/Source/devtools/front_end/security/SecurityPanel.js |
| index da81c396a25dcdd2ada438246bc08a45af1dd923..aa52557394e461084dd719bf43d384b8361b3576 100644 |
| --- a/Source/devtools/front_end/security/SecurityPanel.js |
| +++ b/Source/devtools/front_end/security/SecurityPanel.js |
| @@ -124,6 +124,11 @@ WebInspector.SecurityPanel.prototype = { |
| var origin = /** @type {string} */ (data.origin); |
| var securityState = /** @type {!SecurityAgent.SecurityState} */ (data.securityState); |
| + if (origin === "") { |
|
dgozman
2015/09/03 20:12:18
if (!origin)
|
| + // We don't handle resources like data: URIs yet. Most of them don't affect the lock icon, anyhow. |
| + return; |
|
dgozman
2015/09/03 20:12:18
You should this on the model level, not on present
lgarron
2015/09/03 20:36:31
Hmm, that feels like it goes against the advice I
|
| + } |
| + |
| if (this._origins.has(origin)) { |
| var originState = this._origins.get(origin); |
| var oldSecurityState = originState.securityState; |