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

gitolite role git at cupani.torproject.org
Thu Oct 20 14:41:31 UTC 2022


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

richard pushed a commit to branch tor-browser-91.13.0esr-11.5-1
in repository tor-browser.

commit 4c3730eeca570e181388d23b2bf5d2aa5e1a89f2
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 e1f09894bf01..1b57d4caa101 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