mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
ported "Allow .js preference files to set locked prefs with lock_pref()" patch
This commit is contained in:
parent
09a00ad3bd
commit
102302fa48
4 changed files with 17 additions and 5 deletions
|
|
@ -989,7 +989,8 @@ void PREF_ReaderCallback(void *closure,
|
|||
PrefValue value,
|
||||
PrefType type,
|
||||
bool isDefault,
|
||||
bool isStickyDefault)
|
||||
bool isStickyDefault,
|
||||
bool isLocked)
|
||||
|
||||
{
|
||||
uint32_t flags = 0;
|
||||
|
|
@ -1002,4 +1003,6 @@ void PREF_ReaderCallback(void *closure,
|
|||
flags |= kPrefForceSet;
|
||||
}
|
||||
pref_HashPref(pref, value, type, flags);
|
||||
if (isLocked)
|
||||
PREF_LockPref(pref, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue