DescriptionIssue 5593 - Wait for prefs before updating popup UI
This is part of the work to move away from overwriting the window.ext of the background page and the popup having its own window.ext.
We'll still need a minimal lib/adblockplus.js in the popup. At the very least, we'll need the Prefs object (lib/prefs.js). We can do this by updating metadata.chrome.
If we do that, the prefs aren't yet loaded when the onLoad handler is called. We need to wait for the prefs to be loaded. Once they're loaded, we can update the UI. The delay in loading is not visible to the human eye, but it's slow enough that the onLoad handler will get the default value rather than the actual value that was previously set.
Patch Set 1 #
Total comments: 8
MessagesTotal messages: 5
|