From ef4672503c7c78d7bde591c08b15ce8d48e40b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez?= Date: Tue, 22 Jan 2013 12:29:54 +0100 Subject: [PATCH] Bug 832951 - [WebPayment] Expose DOMRequest ID within mozChromeEvents; r=fabrice, a=nonlibxul --- b2g/chrome/content/payment.js | 3 ++- b2g/components/PaymentGlue.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/b2g/chrome/content/payment.js b/b2g/chrome/content/payment.js index bde15593359c..704866ee9846 100644 --- a/b2g/chrome/content/payment.js +++ b/b2g/chrome/content/payment.js @@ -61,7 +61,8 @@ function closePaymentFlowDialog(aCallback) { let detail = { type: kClosePaymentFlowEvent, - id: id + id: id, + requestId: requestId }; // In order to avoid race conditions, we wait for the UI to notify that diff --git a/b2g/components/PaymentGlue.js b/b2g/components/PaymentGlue.js index 989b85ac2230..eeca68a10e9d 100644 --- a/b2g/components/PaymentGlue.js +++ b/b2g/components/PaymentGlue.js @@ -54,6 +54,7 @@ PaymentUI.prototype = { let detail = { type: kOpenPaymentConfirmationEvent, id: id, + requestId: aRequestId, paymentRequests: aRequests }; @@ -99,6 +100,7 @@ PaymentUI.prototype = { let detail = { type: kOpenPaymentFlowEvent, id: id, + requestId: aRequestId, uri: aPaymentFlowInfo.uri, method: aPaymentFlowInfo.requestMethod, jwt: aPaymentFlowInfo.jwt