[Web Payment] Check for null origin.
Before this patch, a closed frame could return a null origin, but the payment operation continued and eventually triggered an assert that checked for non-null origin. This patch checks for null origin and aborts payment if that's detected. The origin and URL of the render frame host is marked nullable for clarity. After this patch, if a closed frame returns a null origin, then payment is aborted, so the assert is not triggered. Bug: 1129578 Change-Id: I0d6404a6f425ce2e814d8d6fa177609a52d14641 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2511710 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Peter Conn <peconn@chromium.org> Reviewed-by:
Yaron Friedman <yfriedman@chromium.org> Reviewed-by:
Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#823316}
Showing
Please register or sign in to comment