1
0
Fork 0
fenix/app/src/main
Grisha Kruglov b26ac51e90 For #10494: Process HomeMenu builder changes on the main thread
Problem was that we were trying to process menu changes (in response to account manager events) on some background thread as that's what account manager emits them on, so some code internally in PopupWindow's dismiss handling (i think, didn't dig very deeply here) was silently giving up and we'd get into a bad state.

The reason this seemingly only happened if you quickly opened a menu on startup is because account manager isn't initialized until sometime after the startup finished. So the trick was to open the menu (and register account manager state callbacks) before it got initialized, so that the callbacks are invoked.

This should also reproduce in other, much more obscure ways, e.g. if you open the menu right before sync is scheduled to run in the background, change FxA password on another connected client, and then eventually receive a onAuthenticationProblem callback.
2020-05-22 13:50:57 -07:00
..
assets For #6557 - added web-extension for cookies 2020-04-24 15:47:48 -07:00
java/org/mozilla For #10494: Process HomeMenu builder changes on the main thread 2020-05-22 13:50:57 -07:00
res For #10859 - Use dark or light mode colors for tab tray in private mode 2020-05-22 13:34:30 -07:00
AndroidManifest.xml Integrate activity for showing past crashes. 2020-05-12 09:14:20 +02:00
ic_launcher-web.png Optimize PNGs. 2020-02-14 09:41:54 -08:00
ic_launcher_private-web.png Optimize PNGs. 2020-02-14 09:41:54 -08:00