racketlogger / ModernKiosk

Kiosk-like WebExtension for Firefox
GNU General Public License v3.0
23 stars 3 forks source link

Context menu should be disabled in kiosk mode #7

Open ghost opened 6 years ago

ghost commented 6 years ago

Hey,

Is there any plan to support booting into fullscreen and disabling the right click whilst the kiosk is active (so user cant access the source etc)?

Also the option to disable F11 to drop out of fullscreen would be great also.

Good work.

Thanks

cpg commented 6 years ago

In short, yes, I'd like to tighten things more and more with each new release.

I will leave this open to cover disabling the context menu (right click) in kiosk mode.

The other requests above I believe are covered already by existing issues:

ghost commented 6 years ago

Hey,

Excellent and thank you for your timely response. Do you have a rough timeline on implementation?

cpg commented 6 years ago

Nope. Trying to reach out for some help with all the requests.

ghost commented 6 years ago

Any luck on getting help?

cpg commented 6 years ago

I reached out to my contact in Mozilla again yesterday, however, I did not get a response yet. We'll get there. I hope to have more time to research this soon, but it's all in my spare time, which can be slim at this time of the year.

cpg commented 6 years ago

The API for context menus does not appear to allow an extension to disable/remove any context menu not created by the extension itself. So, this makes it hard to really go for a true kiosk solution merely with the extension. There may be other things that can be done, however, we may need some deeper expertise to explore what options we have.

ajd2010 commented 6 years ago

I would just love the Mozilla modern kiosk to boot only to the Modern kiosk browser and a white list to limit my employees to just the site I want them to go to

On Thu, Mar 29, 2018 at 12:56 AM, Carlos Puchol notifications@github.com wrote:

The API for context menus https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus does not appear to allow an extension to disable/remove any context menu not created by the extension itself. So, this makes it hard to really go for a true kiosk solution merely with the extension. There may be other things that can be done, however, we may need some deeper expertise to explore what options we have.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/racketlogger/ModernKiosk/issues/7#issuecomment-377130151, or mute the thread https://github.com/notifications/unsubscribe-auth/AgBa5mOYLw7mAJPnOXFX3GDRLWBclgZOks5tjHeTgaJpZM4Sc4Fq .

ghost commented 6 years ago

I have managed to disable right click context menu's using userChrome.css configuration.

If anyone needs its the snippit is.

#contentAreaContextMenu { display:none !important;}

supremesyntax commented 6 years ago

There is also a js way to do this: https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/oncontextmenu

cpg commented 6 years ago

I spent a few hours trying things around this tip.

Putting code in the background scripts of the extension does not seem to work.

Putting new code in "content scripts" for the extension seems to trigger only once exactly after clicking on the context menu (and on most every, but not all, window, which should not be a problem). No luck so far on this end.