Bug 843309 - paymentSuccess sometimes does not appear in scope (payment window does not close); r=fabrice
authorFernando Jiménez <ferjmoreno@gmail.com>
Thu, 14 Mar 2013 09:58:34 +0100
changeset 124785 96af92fa87fda4ddb69cd85162996c65668bf7e1
parent 124784 fa2ffdf930beaa12b929fe04851f02dada1591e9
child 124790 a4b1b14b865a34d252bdff608574e01f685f9116
child 124793 e542dc7d650114e18c49b5cbc0364274e718f6b2
child 124795 81b7759d33e925caee12917de60633dfe04a9ac1
push id24433
push useremorley@mozilla.com
push dateThu, 14 Mar 2013 12:21:10 +0000
treeherdermozilla-central@96af92fa87fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs843309
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 843309 - paymentSuccess sometimes does not appear in scope (payment window does not close); r=fabrice
b2g/chrome/content/payment.js
--- a/b2g/chrome/content/payment.js
+++ b/b2g/chrome/content/payment.js
@@ -87,12 +87,12 @@ function closePaymentFlowDialog(aCallbac
 }
 
 // We save the identifier of the DOM request, so we can dispatch the results
 // of the payment flow to the appropriate content process.
 addMessageListener("Payment:LoadShim", function receiveMessage(aMessage) {
   requestId = aMessage.json.requestId;
 });
 
-addEventListener("DOMContentLoaded", function(e) {
+addEventListener("DOMWindowCreated", function(e) {
   content.wrappedJSObject.paymentSuccess = paymentSuccess;
   content.wrappedJSObject.paymentFailed = paymentFailed;
 });