Assets in payment window fail to load after call to navigator.mozPay() (loading page is visible)

NEW
Unassigned

Status

()

Core
DOM: Device Interfaces
3 years ago
3 years ago

People

(Reporter: kumar, Unassigned)

Tracking

Trunk
ARM
Gonk (Firefox OS)
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

This is not consistently reproducible but we've seen it twice (also in bug 767818). Steps taken:

- flash Firefox OS 2.0 on a Flame device
- install an app that does in-app purchases
- open the app, make an in-app purchase against the production server (this calls navigator.mozPay() which opens https://marketplace.firefox.com/mozpay/?req=...)

Expected: the payment page should load and begin by asking you to sign in.

Actual: the HTML for the payment loads but none of its assets load. No styles, no javascript. You are stuck on a 'loading' page with no errors in the console.

Restarting the device fixes the issue.

You can run `curl https://marketplace.firefox.com/mozpay/` to see the HTML with the 'loading...' message. This is all that loads inside the payment window.
Created attachment 8529277 [details]
payment-screen-loading.png

This shows the payment window in its state where no assets have loaded, only HTML.
Created attachment 8529278 [details]
payment-not-loading-logcat.txt

A logcat after the blank window opened. This confirms that no JavaScript has loaded because there are no errors and no messages at all relating to assets in the payment window.
Created attachment 8529279 [details]
payment-not-loading-dmesg.txt

Maybe this sheds light on what happened?
ferjm, since we caught a dmesg this time is there any information to  go on?
Flags: needinfo?(ferjmoreno)
This is worth looking into because it seems like a bug specific to the Trusted UI.
I can't see in the logcat or dmesg anything related to payments or the trusted UI.
Assignee: nobody → ferjmoreno
Flags: needinfo?(ferjmoreno)

Comment 7

3 years ago
Just chatting to didem, it appears to be failing only in the latest builds? An old build from November was working just fine? Need info'ing Didem so she can correct me on that.
Flags: needinfo?(dersoz)
Thanks for looking Fernando.

See bug 1101056 for a logcat -- no clues there either though. No javascript error, no indication that javascript loaded at all.
Duplicate of this bug: 1101056
One theory is that our CDN is unreachable in some way causing no assets to be loaded. See bug 1103025 for precedence.
You may be able to verify this theory by checking the network requests and responses with the WebIDE connected to the device.
Yes, I saw this issue in one of the recent builds (a build released before the week of Thanksgiving, can't remember the exact build id). I didn't see it in a build from September, and I did not see it in builds from December.
Flags: needinfo?(dersoz)
I've been doing extensive testing while working on bug 1097928 with a mock payment provider and I didn't see this issue happening a single time. This looks to me like a connectivity issue with the CDN as mentioned in comment 10.
Assignee: ferjmoreno → nobody
You need to log in before you can comment on or make changes to this bug.