Closed Bug 1123849 Opened 10 years ago Closed 10 years ago

App purchase on android fails with "NS_ERROR_FACTORY_NOT_REGISTERED: " {file: "https://marketplace-dev.mozflare.net/mozpay/spa/js/main.min.js?bust=fa9c15f39724a9f8ede7f2b66097197e4da8a750" line: 62}]

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P2)

All
Android
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: krupa.mozbugs, Assigned: scolville)

References

Details

Connectivity: wifi device: Android 38.0a1 (2015-01-20) steps to reproduce: 1. Load https://marketplace-dev.allizom.org on your latest nightly 2. User is logged in 3. Search for :paid apps 4. Click the buy button for a paid app (I used Compound Interest) expected behavior: webpay screen for Enter PIN loads actual behavior: stuck at the loading screen (chrome://browser/content/payment.xhtml) 01-20 11:24:21.965 W/GeckoConsole( 4695): [JavaScript Error: "NS_ERROR_FACTORY_NOT_REGISTERED: " {file: "https://marketplace-dev.mozflare.net/mozpay/spa/js/main.min.js?bust=fa9c15f39724a9f8ede7f2b66097197e4da8a750" line: 62}]
Suspecting that I asked you to test Android too quickly and bug 1097928 hasn't landed yet. Sorry about that.
Priority: -- → P2
Assignee: nobody → scolville
I can still repro this with latest nightly: I/GeckoConsole(20618): [lib][tracking] [tracking] Setting up GA tracking I/GeckoConsole(20618): [lib][tracking] Tracking initialized I/GeckoConsole(20618): [views][app] I AM SPARTACUS! I/GeckoConsole(20618): [views][app] Initing app view I/GeckoConsole(20618): [models][session] session model inited I/GeckoConsole(20618): [models][pin] Initing PinModel I/GeckoConsole(20618): [models][transaction] Transaction model inited I/GeckoConsole(20618): [views][app] Server granted user super powers? false I/GeckoConsole(20618): [lib][i18n] Setting locale to: en_US I/GeckoConsole(20618): [views][app] Starting Backbone.history I/GeckoConsole(20618): [views][page] Page initialize I/GeckoConsole(20618): [views][page] Initializing event listeners I/GeckoConsole(20618): [views][init] Checking for JWT I/GeckoConsole(20618): [views][init] Setting JWT on transaction model W/GeckoConsole(20618): [JavaScript Error: "NS_ERROR_FACTORY_NOT_REGISTERED: " {file: "https://marketplace-dev.mozflare.net/mozpay/spa/js/main.min.js?bust=33c56986201a51fccfb663b197dd27319cfaa274" line: 62}] I'll try proxying to get a more useful line number as to what's triggering it.
FFAndroid version is 38.0a1 (2015-02-04)
Ok so after unravelling the file and proxying an un-minned version of our code the line that we're getting this error on is: https://github.com/mozilla/spartacus/blob/master/public/js/lib/utils.js#L134 The suspect is navigator.mozId. Poking at just that is enough to cause that error. Here's a testcase: http://jsbin.com/juxasu/ Which shows the following in adb. W/GeckoConsole( 8958): [JavaScript Error: "NS_ERROR_FACTORY_NOT_REGISTERED: " {file: "http://jsbin.com/juxasu" line: 19}]
Depends on: 1129650
I've filed a platform bug here: bug 1129650 I'll look at wrapping this in a try/catch to see if we can workaround the issue so we can move forward.
Status: NEW → ASSIGNED
https://github.com/mozilla/spartacus/commit/143653593621982a53b51cfb3e2d59b0e61a2e7e This uncovers other errors I'll file bugs for those separately.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.