blob: df1c027df81ec426f601e091b6425b6da2f48a5e [file] [log] [blame]
(async function(testRunner) {
const {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 active mixed content.`);
// The iframe is in the same site so we can watch its network requests.
function addIframeWithMixedContent() {
const iframe = document.createElement('iframe');
iframe.src = 'https://example.test:8443/inspector-protocol/resources/active-mixed-content-iframe.html';
document.body.appendChild(iframe);
}
const helper = await testRunner.loadScript('./resources/mixed-content-type-test.js');
helper(testRunner, session, addIframeWithMixedContent);
})