blob: e47f01d4b1889b84b765a701bcbcf8c33b9083e2 [file] [log] [blame]
(async function(testRunner) {
var {page, session, dp} = await testRunner.startURL(
'https://example.test:8443/inspector-protocol/resources/test-page.html',
`Tests that willSendRequest contains the correct mixed content status for not-mixed content.`);
// The iframe is in the same site so we can watch its network requests.
function addIframeWithMixedContent() {
var iframe = document.createElement('iframe');
iframe.src = 'https://example.test:8443/inspector-protocol/resources/no-mixed-content-iframe.html';
document.body.appendChild(iframe);
}
var helper = await testRunner.loadScript('./resources/mixed-content-type-test.js');
helper(testRunner, session, addIframeWithMixedContent);
})