browser(firefox): partially revert scrollbars patch (#6670)
This commit is contained in:
parent
fad77e2f78
commit
2f9b057525
|
|
@ -1,2 +1,2 @@
|
|||
1254
|
||||
Changed: max@schmitt.mx Di 18. Mai 21:21:37 CEST 2021
|
||||
1255
|
||||
Changed: joel.einbinder@gmail.com Wed 19 May 2021 06:54:50 PM PDT
|
||||
|
|
|
|||
|
|
@ -45,6 +45,12 @@ CommandLineHandler.prototype = {
|
|||
|
||||
const loadFrameScript = () => {
|
||||
Services.mm.loadFrameScript(FRAME_SCRIPT, true /* aAllowDelayedLoad */);
|
||||
if (Cc["@mozilla.org/gfx/info;1"].getService(Ci.nsIGfxInfo).isHeadless) {
|
||||
const styleSheetService = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Components.interfaces.nsIStyleSheetService);
|
||||
const ioService = Cc["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
|
||||
const uri = ioService.newURI('chrome://juggler/content/content/hidden-scrollbars.css', null, null);
|
||||
styleSheetService.loadAndRegisterSheet(uri, styleSheetService.AGENT_SHEET);
|
||||
}
|
||||
};
|
||||
|
||||
// Force create hidden window here, otherwise its creation later closes the web socket!
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
1264
|
||||
Changed: max@schmitt.mx Di 18. Mai 20:50:35 CEST 2021
|
||||
1265
|
||||
Changed: joel.einbinder@gmail.com Wed 19 May 2021 06:53:35 PM PDT
|
||||
|
|
|
|||
|
|
@ -45,6 +45,12 @@ CommandLineHandler.prototype = {
|
|||
|
||||
const loadFrameScript = () => {
|
||||
Services.mm.loadFrameScript(FRAME_SCRIPT, true /* aAllowDelayedLoad */);
|
||||
if (Cc["@mozilla.org/gfx/info;1"].getService(Ci.nsIGfxInfo).isHeadless) {
|
||||
const styleSheetService = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Components.interfaces.nsIStyleSheetService);
|
||||
const ioService = Cc["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
|
||||
const uri = ioService.newURI('chrome://juggler/content/content/hidden-scrollbars.css', null, null);
|
||||
styleSheetService.loadAndRegisterSheet(uri, styleSheetService.AGENT_SHEET);
|
||||
}
|
||||
};
|
||||
|
||||
// Force create hidden window here, otherwise its creation later closes the web socket!
|
||||
|
|
|
|||
Loading…
Reference in a new issue