Open Bug 1255649 Opened 4 years ago
Powers should provide a way to set a pref from content and be notified when the pref is synced to content
It would be convenient at least. There's pushPrefEnv, but as far as I can tell it doesn't actually wait for the pref to be synced to the child and the nsPref:changed notification to be sent before calling its callback. See bug 1253479 for motivation. We had to set a pref from the child, and because the code under test also runs in the child, the test had to observe the pref change before continuing. Previously it had not been running under e10s, and it assumed that the code under test observed the pref change instantaneously.
You need to log in before you can comment on or make changes to this bug.