blob: 72e04df1f4e49dcdf49062aa55385c97f98d8df2 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests that blank origins aren't shown in the security panel origins list.\n`);
await TestRunner.loadModule('security_test_runner');
await TestRunner.showPanel('security');
var request1 = new SDK.NetworkRequest(0, 'https://foo.test/foo.jpg', 'https://foo.test', 0, 0, null);
SecurityTestRunner.dispatchRequestFinished(request1);
var request2 = new SDK.NetworkRequest(
0,
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAYAAABmBXS+AAAAPElEQVR42mNgQAMZGRn/GfABkIIdO3b8x6kQpgAEsCpEVgADKAqxKcBQCCLwARRFIBodYygiyiSCighhAO4e2jskhrm3AAAAAElFTkSuQmCC',
'https://foo.test', 0, 0, null);
SecurityTestRunner.dispatchRequestFinished(request2);
SecurityTestRunner.dumpSecurityPanelSidebarOrigins();
TestRunner.completeTest();
})();