Commit b14cc2cd authored by lgarron@chromium.org's avatar lgarron@chromium.org

Ignore blank origins in the Security panel.

BUG=525334

Review URL: https://codereview.chromium.org/1323273002

git-svn-id: svn://svn.chromium.org/blink/trunk@201745 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 2a49a824
......@@ -362,9 +362,15 @@ WebInspector.NetworkDispatcher.prototype = {
*/
_dispatchResponseReceivedSecurityDetails: function(requestId, response)
{
var origin = WebInspector.ParsedURL.splitURLIntoPathComponents(response.url)[0];
if (!origin) {
// We don't handle resources like data: URIs. Most of them don't affect the lock icon.
return;
}
var eventData = {};
eventData.requestId = requestId;
eventData.origin = WebInspector.ParsedURL.splitURLIntoPathComponents(response.url)[0];
eventData.origin = origin;
eventData.securityState = response.securityState;
if (response.securityDetails) {
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment