Fixed returning of values that have been set on the same lock
Scope temporary sets to the window level, not the lock level
Bug 846200: Update permissions on mochitests to use settings-api