Re: What would be the right approach to hide scrollbars for one document?

2012-09-25 Thread Paul Rouget
Boris Zbarsky wrote: > On 9/25/12 7:54 AM, Paul Rouget wrote: > >let win = gBrowser.contentWindow; > >let gIOService = > >Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); > >let windowUtils = > >win.QueryInterface(Components.interfaces.nsIInt

Re: What would be the right approach to hide scrollbars for one document?

2012-09-25 Thread Boris Zbarsky
On 9/25/12 7:54 AM, Paul Rouget wrote: let win = gBrowser.contentWindow; let gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); let windowUtils = win.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Compon

Re: What would be the right approach to hide scrollbars for one document?

2012-09-25 Thread Paul Rouget
Neil wrote: > Paul Rouget wrote: > > >For the Firefox Developer Tools, we need to be able to hide the scrollbars > >of a document (in the "Responsive Design Tool"). > > > Scrollbars are native anonymous content so most stylesheets just > don't see them (the obvious exception is of course > chrome

Re: What would be the right approach to hide scrollbars for one document?

2012-09-25 Thread Neil
Paul Rouget wrote: For the Firefox Developer Tools, we need to be able to hide the scrollbars of a document (in the "Responsive Design Tool"). Scrollbars are native anonymous content so most stylesheets just don't see them (the obvious exception is of course chrome://global/skin/scrollbars

What would be the right approach to hide scrollbars for one document?

2012-09-25 Thread Paul Rouget
For the Firefox Developer Tools, we need to be able to hide the scrollbars of a document (in the "Responsive Design Tool"). I thought that loading an stylesheet that hide the scrollbars via the new `loadSheet` method might help. https://hg.mozilla.org/mozilla-central/diff/4d529ec2c6ea/dom/interfa