Closed Bug 1497215 Opened 6 years ago Closed 6 years ago

The browser crashes during the payment process if the " ; " punctuation mark is used in fields

Categories

(Core :: DOM: Web Payments, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla65
Tracking Status
firefox-esr60 --- disabled
firefox63 --- disabled
firefox64 --- disabled
firefox65 --- verified

People

(Reporter: tbabos, Assigned: edenchuang)

References

Details

(Keywords: crash, Whiteboard: [webpayments-reserve])

Crash Data

Attachments

(1 file, 2 obsolete files)

[Affected versions]: 
Nightly 64.0a1 (2018-10-08)

[Affected platforms]:
Platforms: Windows 10 x 64, Mac OS 10.13, Ubuntu 16.04.

[Preconditions]:
1. Set the pref dom.payments.request.enabled to "true";
2. Make sure you have at least one Shipping Address and one Credit Card saved in your browser.

[Steps to reproduce]:
1. Go to "https://rsolomakhin.github.io/pr/us/" and click on "Buy"
2. Add or Edit a shipping address
3. Fill in any field with the " ; " punctuation mark 
4. Click on the "Pay" button on the Order Summary screen


[Expected result]:
The payment widget should be closed and the response displayed correctly.

[Actual result]:
The browser crashes. 

[Note]:
Tried out all the other basic punctuation marks and symbols on the keyboard, so far only " ; " seems to crash the browser. 

The crash can NOT be reproduced on Windows 7 x64.
Flags: qe-verify+
Great find! I think this is due to the IPC serialization using semicolons (IIRC).
Severity: normal → critical
Component: WebPayments UI → DOM: Web Payments
Priority: -- → P2
Product: Firefox → Core
Whiteboard: [webpayments] [triage] → [webpayments]
Assignee: nobody → echuang
Status: NEW → ASSIGNED
Priority: P2 → P1
Whiteboard: [webpayments] → [webpayments-reserve]
I post the patch on the wrong bug and get the r+ 

https://bugzilla.mozilla.org/show_bug.cgi?id=1497219#c4
Attachment #9018983 - Flags: review+
Keywords: checkin-needed
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fa6b7a70f2db
Refactor the IPC structure for PaymentResponse.details r=baku
Keywords: checkin-needed
Keywords: checkin-needed
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8238a4eeda86
Refactor the IPC structure for PaymentResponse.details r=baku
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8238a4eeda86
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Status: REOPENED → ASSIGNED
Fix the memory leak.
Attachment #9019310 - Attachment is obsolete: true
Flags: needinfo?(echuang)
Attachment #9020771 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/4b9fa41aa4ec
Status: ASSIGNED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Verified as fixed on Firefox Nightly 65.0a1 (2018-10-29) on Windows 10 x 64, Windows 7 x32, Mac OS X 10.14 and on Ubuntu 16.04 x64.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
AFAIK, this doesn't need backporting since WebPayments are still Nightly-only, but feel free to nominate for Beta uplift if I'm mistaken.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: