Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* Any copyright is dedicated to the Public Domain.
add_task(async function test() {
gURLBar.focus();
is(
document.activeElement,
gURLBar.inputField,
"urlbar is focused before restoring"
);
await promiseBrowserState({
windows: [
{
tabs: [
{
entries: [
{
triggeringPrincipal_base64,
},
],
},
],
selected: 1,
},
],
});
is(
document.activeElement,
gBrowser.selectedBrowser,
"content area is focused after restoring"
);
});