Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/* Any copyright is dedicated to the Public Domain.
// Test to see if retrieving cached messages in a page with a cross-domain iframe does
// not crash the console.
"use strict";
const TEST_URI =
"test/browser/test-iframe-parent.html";
add_task(async function () {
info("Open the tab first");
await addTab(TEST_URI);
info("Evaluate an expression that will throw, so we'll have cached messages");
await SpecialPowers.spawn(gBrowser.selectedBrowser, [], function () {
content.wrappedJSObject.document.querySelector("button").click();
});
info("Then open the console, to retrieve cached messages");
await openConsole();
// TODO: Make the test fail without the fix.
ok(true, "Everything is okay");
});