chromium/third_party/blink/web_tests/http/tests/inspector-protocol/mixed-content-execution-contexts-1.js

(async function(/** @type {import('test_runner').TestRunner} */ testRunner) {
  const {page, session, dp} = await testRunner.startBlank(
      `Tests that execution contexts are reported for frames that were blocked due to mixed content when runtime is enabled *before* navigation.`);
  await dp.Runtime.enable();
  let count = 0;
  dp.Runtime.onExecutionContextCreated(event => {
    // TODO(caseq): remove following v8 roll past https://chromium-review.googlesource.com/c/v8/v8/+/2594538
    delete event.params.context.uniqueId;

    testRunner.log(event);
    if (++count === 2) // page context + frame context.
      testRunner.completeTest();
  });
  await page.navigate('https://devtools.test:8443/inspector-protocol/resources/mixed-content-iframe.html');
})