linux - How can I apply a CSS stylesheet to all page views in XULRunner -


i trying develop display device (expected installed in public transports) able show (more or less fixed) web page in chromeless embedded browser on linux platform (i using archlinux).

after lot of tries mozilla firefox, focusing on use of small xulrunner application using following simple xul document:

<?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="main" title="epl browser" width="1920" height="1080" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">  <browser type="content" src="http://www.example.org//" flex="1"/> </window> 

this works expected, want apply page (whatever web page choose) css rule removing unwanted scrollbars, following:

body {     overflow: hidden; } 

when using mozilla firefox, simple, needed put in chrome/usercontent.css file inside firefox profile.

but know:

  • is there mean include usercontent.css file in xul document in order have working same way in firefox?
  • if not, there way apply same css rule (and possibly others) page defined in xul "browser" tag? example other tags directly included in xul document?

any welcome.

use of usercontent.css file in nslayoutstylesheetcache.cpp file https://dxr.mozilla.org/mozilla-central/source/layout/style/nslayoutstylesheetcache.cpp#314-341

which looks not firefox specific, app needs not safe mode, , there needs profile used, otherwise think should able use files.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -