mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 922919 - Set three preferences in one asynchronous call to fix timing bug. r=khuey
This commit is contained in:
parent
9344c23dcc
commit
a95b532efa
@ -29,6 +29,11 @@ const browserElementTestHelpers = {
|
||||
}
|
||||
},
|
||||
|
||||
_setPrefs: function() {
|
||||
this.lockTestReady();
|
||||
SpecialPowers.pushPrefEnv({'set': Array.slice(arguments)}, this.unlockTestReady.bind(this));
|
||||
},
|
||||
|
||||
_testReadyLockCount: 0,
|
||||
_firedTestReady: false,
|
||||
lockTestReady: function() {
|
||||
@ -44,9 +49,11 @@ const browserElementTestHelpers = {
|
||||
},
|
||||
|
||||
enableProcessPriorityManager: function() {
|
||||
this._setPref('dom.ipc.processPriorityManager.testMode', true);
|
||||
this._setPref('dom.ipc.processPriorityManager.enabled', true);
|
||||
this._setPref('dom.ipc.processPriorityManager.backgroundLRUPoolLevels', 2);
|
||||
this._setPrefs(
|
||||
['dom.ipc.processPriorityManager.testMode', true],
|
||||
['dom.ipc.processPriorityManager.enabled', true],
|
||||
['dom.ipc.processPriorityManager.backgroundLRUPoolLevels', 2]
|
||||
);
|
||||
},
|
||||
|
||||
setEnabledPref: function(value) {
|
||||
|
Loading…
Reference in New Issue
Block a user