[tbb-commits] [tor-browser] 29/36: Bug 1789439 - Fix browser_modal_print.js after previous patch. a=pascalc

gitolite role git at cupani.torproject.org
Thu Oct 13 07:51:17 UTC 2022


This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to annotated tag FIREFOX_102_4_0esr_BUILD1
in repository tor-browser.

commit 31bcb9ab3723a55b10df4a8407d814fabf17e0a5
Author: Emilio Cobos Álvarez <emilio at crisal.io>
AuthorDate: Thu Sep 15 09:48:12 2022 -0700

    Bug 1789439 - Fix browser_modal_print.js after previous patch. a=pascalc
    
    MANUAL PUSH: Orange fix CLOSED TREE
---
 toolkit/components/printing/tests/browser_modal_print.js | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/toolkit/components/printing/tests/browser_modal_print.js b/toolkit/components/printing/tests/browser_modal_print.js
index d28a3198f9ef..55492cc42147 100644
--- a/toolkit/components/printing/tests/browser_modal_print.js
+++ b/toolkit/components/printing/tests/browser_modal_print.js
@@ -40,12 +40,15 @@ add_task(async function testPrintMultiple() {
     assertExpectedPrintPage(helper);
 
     // Trigger the command a few more times, verify the overlay still exists.
-    await helper.startPrint();
-    helper.assertDialogOpen();
-    await helper.startPrint();
-    helper.assertDialogOpen();
-    await helper.startPrint();
-    helper.assertDialogOpen();
+    ignoreAllUncaughtExceptions(true);
+    for (let i = 0; i < 3; ++i) {
+      try {
+        await helper.startPrint();
+      } finally {
+        helper.assertDialogOpen();
+      }
+    }
+    ignoreAllUncaughtExceptions(false);
 
     // Verify it's still the correct page.
     assertExpectedPrintPage(helper);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list