mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
15 lines
621 B
JavaScript
15 lines
621 B
JavaScript
(function() {
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
// Set cache size to something large
|
|
var prefService = Components.classes["@mozilla.org/preferences-service;1"]
|
|
.getService(Components.interfaces.nsIPrefService);
|
|
var branch = prefService.getBranch("media.");
|
|
var oldSize = branch.getIntPref("cache_size");
|
|
branch.setIntPref("cache_size", 40000);
|
|
|
|
window.addEventListener("unload", function() {
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
branch.setIntPref("cache_size", oldSize);
|
|
}, false);
|
|
})();
|