How to make Firefox allow screen sharing without prompt - firefox

I checked the Firefox share screen here https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/
When I click the button, this dialog show up: https://i.imgur.com/TdMg6Ki.png
How can I allow the share screen automatically, Firefox don't even allow remember choice. I know it's security risk, but in my case, I take the risk.
Is there any way ( config, run with hidden flag ) allow website access screen sharing without prompt ?
Thank you

This can be turned off via the media.navigator.permission.disabled preference in about:config. Quite useful for automated testing obviously.

Related

Can't make changes to the default Administrator Account

Can't make changes in the default Administrator Account. I'm talking basic stuff here. Can't unlock the taskbar. Resize or move the taskbar around. Not to the same monitor or to another Which is what I want to do. I can't do other things similar to this such as changing the environment a bit. I don't know what else is blocked because I really don't spend any time in that account but if these basic functions are blocked you KNOW there are more serious things that are blocked as well.
I created a new Administrator account and it has the same issues.
I mean isn't the default Administrator's Account supposed to be able to do EVERYTHING WITHOUT verification. I am unable to make even basic changes. I can't change the view of Windows Explorer. I change the default computer view from Tiles to Details and the next Explorer window that comes up has it back at tile view. I tried to get windows to show file extensions and it won't even though I uncheck "Hide extensions for known file types" in Folder Options.

Can I pass the -f parameter to iexplore.exe when using Watir?

I need to run several instances of a Ruby script that's using the Watir gem, and they all need to be able to run in IE fullscreen mode.
CLARIFICATION: They need to be able to open IE in a mode that allows multiple instances of IE to operate in full screen mode, not necessarily trigger the fullscreen. Opening up IE normally allows only a single instance to open fullscreen (not maximized).
I can make this happen manually, by specifying the '-f' parameter on iexplore.exe. Is there a way to make this happen when creating the browser object from Watir?
If I can't make it happen when this as some sort of runtime parameter, I'd be ok with changing the base Watir call that opens IE - if I could and could find it.
require 'watir'
browser = Watir::Browser.new <--- adding '-f' somehow here?
Try this, it worked for me on IE 9.
browser = Watir::Browser.new
browser.goto 'http://www.google.com'
browser.getIE.parent.FullScreen = true
Edit: I found a registry setting that may do what you are trying.
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
Fullscreen = "yes" (Default = "no")
Did you try
browser.maximize
It only works on IE, but it is an option that's been documented for a while (see the watir cheat-sheet)
Of course you need perhaps to consider WHY the browser needs to run full screen, or what happens if you move the scripts to a system where the default screen size is different. You might be better off to set the browser to a specific size, which can be done with a simple javascript resizeTo function, you can even 'goto' it as a URL
browser.goto('javascript:resizeTo(800,600)')
There is also a 'moveTo' that can be used the same way. so you can position the window at a known point.
If you need the browser in a particular place and size, something else to consider would be creating a page with the proper javascript to set things they way you want and then make that your default homepage so it runs as soon as the browser opens. If your google for 'javascript maximize browser' or 'javascript resize browser' you will likely find example code for such a page.
=-=-=-= Edit (based on clarification that 'fullscreen' is what is wanted, not merely maximized)
Lastly you could look at simply simulating a 'F11' keypress as that is the fullscreen toggle for most browsers. If you are using watir-webdriver this can be done via the sendkeys method
browser.send_keys :f11
However that is a toggle, and in a script would depend on things being in the right state to start with. Something that got out of sync might end up turning 'off' the fullscreen.
So you might investigate also the idea of a specific page on the local system that would spawn a new fullscreen window, and having the code attach to the new window. (or using the switching window code in watir-webdriver) although this sort of 'popup a new window in fullscreen mode' is something you might expect to be blocked or deprecated (see below) in the future if not already on some browsers.
Warning: being able to throw the browser into fullscreen mode from the HTML is something that is somewhat frowned upon because it is considered a security vulnerability. This is because someone could craft a specific image to make it LOOK like a url bar and other controls were present, and the user at a legitimate site, when creating a phishing site. Such sites are currently one of the larger issues the web community faces right now (contents of my spamfilter are about 20% phishing and rising rapidly) So while there may have been methods in the past to do that, increasingly they get 'shut down' by newer more secure versions of browsers. This might tend to make the sendkeys option your best bet going forward in terms of something that should work cross browser. (nearly all that I know of use F11 for the fullscreen toggle)
-k puts IE into a full screen kiosk mode that is more than F11. There are no toolbars, menus, icons, etc. You have to hit Alt+F4 to close it and you can Alt+Tab to other open tasks.
Feels hackish, but I figured out I can do something like (but I'd love a better way):
require 'watir'
IO.popen('C:\\Program Files\\Internet Explorer\\iexplore.exe -f "newwindow"')
browser = Watir::IE.attach(:title,/newwindow/)

User settings' persistence in NPAPI?

I was wondering, if there's anything in NPAPI, which supports reading/writing user settings? Currently I use XPCOM, but I want to get rid of this code in order to support other browsers than Firefox.
I understand I can just read/write the file system (or registry on Windows) directly, but I want to explore other options - allowing the user edit these settings from the browser (e.g. about:config in FF) is, arguably, a better user experience than to direct him to edit some custom-made config files.
On the Mac plugins that need preferences sometimes ship a system preference pane with the plugin (and have a context menu item to open that pref pane), so that users have a UI for editing prefs. If there's not something similar for Windows and Linux you could always ship a small app that edits the prefs.
There is no such functionality in NPAPI.

firefox kiosk mode : just 3 buttons needed

I've done the researched but I haven't found anything suitable.
I need firefox to start in so called kiosk mode that would result in :
fullscreen
no tabs
no right click
back home forward buttons
There are plugins like r-kiosk - can I configure them to display only 3 buttons that I need?
thanks
I've written a Firefox extension that does just this called Webconverger:
http://webconverger.org/kiosk/
http://en.wikipedia.org/wiki/Webconverger itself is a complete browser operating system with this "kiosk mode" extension loaded by default.
Use mKiosk firefox plugin. It's a Public Firefox Kiosk Mode with optional Tabs Guides for Access Point. Complete solution. Block downloads/addon, bookmarks, reset kiosk inactivity, retry on errors, restricted interface, show favorites as buttons and more...

new Windows 7 systray - how to show information to users now

new Windows 7 hides systray icons by default.
what is the recommended way to show information to users now?
I need to have a small clickable icon visible to user so user can access my "tool" anytime. Should I use the gadget to show my GUI instead? Can it communicate with my Delphi app somehow?
Without more information it's a little difficult to provide a recommendation.
However, I would imagine that a sufficiently important tool, the user would simply keep minimized. They could then use Jumplists to access quick functionality.
For example, Live Messenger uses this setup on Win7.
If your users really like your icon/application they can always choose to not hide your application.
The only difference is that only the user can choose which icon is shown, instead of every application claiming it's "real estate".
In my opinion this is a good functionality and if I were you I wouldn't change the application, just provide a first run GUI which explains how to make your tray icon visible in windows 7.
The entire reason why change was made, was to stop programs like yours. If you need to show information, go ahead and do so. But the notification areas ("systray") is not where shortcuts go. For that, you've got the start menu, desktop and/or the quick launch bar (and please let the user decide).

Resources