1
0
Fork 0
fenix/app/src
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
..
androidTest Bug 1638073 - Update conftest for 'tps' to use current (firefoxci) api urls 2020-05-22 11:16:33 -07:00
debug For #10691 - Turn on LeakCanary by default for debug builds 2020-05-18 15:08:09 -07:00
fenixBeta/res Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fenixNightly Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fennecBeta/res No issue: losslessly compress image assets. 2020-05-04 14:54:46 -07:00
fennecNightly/res Optimize PNGs. 2020-02-14 09:41:54 -08:00
fennecProduction/res/xml Closes #8273: Add shortcuts.xml for fennecProduction variant. 2020-02-14 07:42:23 +01:00
geckoBeta/java/org/mozilla/fenix/engine For #10757: remove no-op Experiments code and dependency. 2020-05-18 15:38:38 -07:00
geckoNightly/java/org/mozilla/fenix/engine Closes #7450: Lazy storage initialization 2020-03-19 15:46:50 -07:00
main For #10494: Process HomeMenu builder changes on the main thread 2020-05-22 13:50:57 -07:00
migration For #8803: hook up frameworkStart metric. 2020-04-17 09:11:58 -07:00
test For #8125: Add default top site telemetry (#10752) 2020-05-22 13:10:09 -07:00