Page 1 of 1

White list filter web site problem

Posted: 02 Jun 2015, 14:06
by Debadr
Hi all,

This is not properly a PKE bug, i just need help to solve my problem.
i have a white list with this website on it : which i put it like this in my web config file:

Code: Select all

So i can go all over the website without any restriction.
My problem is when i activate white list filtering something goes wrong and i see problems on display (If i disable filtering i have no problem of display) : please sea the link and compare with the picture below:
As you can see all the content goes to the left side without any reason.

I tried to see if the page needs more url's so it can display properly using HttpFox An HTTP analyzer addon for Firefox, and i founded some websites like and that are needed to be white listed, which i have done, but same problem as far...

I tried also to add flash + java modules but no change, the content goes to the left. Again :wall:

If someone can help on this it would be great thank you !
using PKE 3.3.0

Re: White list filter web site problem

Posted: 02 Jun 2015, 20:19
by fanthom
unfortunately i dont know the answer.
some sites are not compatible with the whitelist function we have in kiosk and i would like to avoid any addons as they may go outdated/unmaintained.

anyway - for your custom build you could try to integrate easy whitelist addon which should work without problems: ... whitelist/

you may follow general instructions i posted here:

ofc - you have to install addon. to unblock access to about:addons please delete chrome/userContent.css from firefox profile.

Re: White list filter web site problem

Posted: 03 Jun 2015, 06:42
by Debadr
Hi Fanthom,

Thanks for your answer.

Unfortunately we also try to make clean OS's with PKE and avoid any third party softwares, so re-installation, upgrades and modification won't take much time.

May be if you tell me how white list works on PKE (how the system reads the configuration file, and where he put entries of the white-list) i could do something, logs ? configuration file ?

Thank you.

Re: White list filter web site problem

Posted: 03 Jun 2015, 08:29
by fanthom
whitelist is implemented through a css rule like described for example here: ... ontent-css

please do as follows:
- setup whitelist for some websites
- login to kiosk through ssh
- run 'cat /home/guest/.mozilla/firefox/c3pp43bg.default/chrome/userContent.css'

and check how the rule is constructed. if you find an improvement to it - please share.

thank you.

Re: White list filter web site problem

Posted: 03 Jun 2015, 14:28
by Debadr
Thank you Fanthom,

Since this morning, i am trying some modifications, i putted the userContent.css on my debian so i can at least try faster the modification without the need to modify configuration file and reboot PKE ... every time :D

No solution so far at the moment :wall: , but i asked a friend for some help , will be back tomorrow with more informations hopefully. :)

Re: White list filter web site problem [Hiding the Bug]

Posted: 04 Jun 2015, 12:37
by Debadr
Ok we found one of the possible solutions. It's not the cleanest way neither the automatic way but it works.

Please notice that this solution is based on html/css of this website : The solution may vary depending of how the website is programed.

To find what is the problem on our website and the white list we used the firefox/iceweasel investigator so we can see the html code and values that is given to the body, tables and containers of the html code.

The part of the html code that interest us founded, we tried to do some modifications to the /home/guest/.mozilla/firefox/c3pp43bg.default/chrome/userContent.css file that basically is like that :
1) The part that everyone have hard-coded on the iso : This is how no one have access to the configuration of firefox (partially)

Code: Select all

 @-moz-document regexp("^about:addons|^about:accounts|^about:cache|^about:config|^about:customizing|^about:home|^about:memory|^about:networking|^about:permissions|^about:preferences|      ^about:support|^about:telemetry|^chrome:.*|^file:.*") {
         html, page, window {
                display: none !important;

2) This is the part that is added under the hard-coded part when we configure a white list : here we added to the white-list just our web site :

Code: Select all

body, body > * { display: none }
html { background: url(file:///usr/share/pixmaps/blocked-content.png) no-repeat center top }
@-moz-document regexp(".**")
{body, body > * { display: inherit }
body > script { display: none }
html { background: inherit }}
The solution :
The solution founded is about trying to reset the values of the containers that make all content goes to the left side.
The containers (tags) concerned in our case is : #area, #area > tr (tr is a tag in the area tag) and #tabscontent.
3) After a little bit of how to's and googling we founded how resizing this tags and we add this part on the userContent.css file at the end :

Code: Select all

@-moz-document regexp(".**") {
	position: relative;
	#area > tr{
	margin: 0 auto;
    display: inline-block;
	margin-left: auto;
	margin-right: auto;
And just after that size of the text becomes readable, of corse depending of your problem you can play with the marges and size of tags to have the optimum display in your case.
Remaster the iso after re-compressing the 003-setting.xzm and basically the problem is "fixed" or hided if you prefer :).

Consider that this is not a general solution (This ISO will remain with this kind of machines and need) neither a patch or a fix, this is just how to hide this kind of problems.

Hope this will help others and also to find a better way to fix this bug. :)

Re: White list filter web site problem

Posted: 04 Jun 2015, 14:38
by fanthom
i wish there was a way of implementing some general solution. i guess this wont be easy/possible.

thanks a lot for sharing.

Re: White list filter web site problem

Posted: 05 Jun 2015, 06:35
by Debadr
I wish too, but as far i saw, this is gonna be tough, unless you knows a css master and even... From what we saw, this is not about the userContent file, this is about the quality of coding websites... when someone defines 4 tags (containers) for one block of text this is more about torture then everything else...

But hey , PKE have zoom option on hes browser ;) unless this bug becomes a universal one it's more a usability problem that not affect the basic services that PKE's offers :).

Good luck, thank you again for PKE :good: