diff --git a/devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_print_preview.js b/devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_print_preview.js index 2c9a90961cfe..c1c624e90797 100644 --- a/devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_print_preview.js +++ b/devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_print_preview.js @@ -17,6 +17,10 @@ add_task(async function() { // Forces the Browser Toolbox to open on the inspector by default await pushPref("devtools.browsertoolbox.panel", "inspector"); + // Force the modal print preview, otherwise the printPreview command will not + // open the expected UI. + await pushPref("print.tab_modal.enabled", true); + // Open the tab *after* opening the Browser Toolbox in order to force creating the remote frames // late and exercise frame target watching code. await addTab(`data:text/html,
PRINT PREVIEW TEST
`);