Bug 1006237 - Unify permissions check in nsIDataStore.checkPermission. r=baku, ehsan