Closed Bug 850697 Opened 12 years ago Closed 9 years ago

nsContentUtils does not pick up manual changes to the dom.idle-observers-api.enabled preference

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: gsvelto, Unassigned)

References

Details

nsContentUtils reads the dom.idle-observers-api.enabled preference at startup when executing nsContentUtils::Init() but does not react to changes to these preferences. Since nsContentUtils::Init() is invoked before Preferences::ResetAndReadUserPrefs() is called a value for this preference manually entered via about:config has no effect. It is not clear if this was intended behavior or not hence the UNCONFIRMED status. The Navigator class uses this value to allow access to the idle observer API methods, detecting changes to this value might thus be tricky as some idle observers may have already been added before the value is turned to false. One would need to detect a situation where an idle observer API method has been called whilst dom.idle-observers-api.enabled was manually set to false and assert or at least log a warning message.
Component: DOM: Mozilla Extensions → DOM
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.