diff --git a/toolkit/components/payments/test/PaymentTestUtils.jsm b/toolkit/components/payments/test/PaymentTestUtils.jsm index d42e600e95dd..fbce98d4d9eb 100644 --- a/toolkit/components/payments/test/PaymentTestUtils.jsm +++ b/toolkit/components/payments/test/PaymentTestUtils.jsm @@ -85,7 +85,13 @@ var PaymentTestUtils = { createAndShowRequest: ({methodData, details, options}) => { const rq = new content.PaymentRequest(methodData, details, options); content.rq = rq; // assign it so we can retrieve it later + + const handle = content.QueryInterface(Ci.nsIInterfaceRequestor) + .getInterface(Ci.nsIDOMWindowUtils) + .setHandlingUserInput(true); content.showPromise = rq.show(); + + handle.destruct(); }, },