Bug 1442757 - use `sendMessageToContent` helper. r=mattn
MozReview-Commit-ID: Ir3PUTopIJo
--- a/toolkit/components/payments/content/paymentDialogWrapper.js
+++ b/toolkit/components/payments/content/paymentDialogWrapper.js
@@ -253,21 +253,18 @@ var paymentDialogWrapper = {
});
},
updateRequest() {
// There is no need to update this.request since the object is live
// and will automatically get updated if event.updateWith is used.
let requestSerialized = this._serializeRequest(this.request);
- this.mm.sendAsyncMessage("paymentChromeToContent", {
- messageType: "updateState",
- data: {
- request: requestSerialized,
- },
+ this.sendMessageToContent("updateState", {
+ request: requestSerialized,
});
},
/**
* Recursively convert and filter input to the subset of data types supported by JSON
*
* @param {*} value - any type of input to serialize
* @param {string?} name - name or key associated with this input.