Electron steals focus to Windows 10 Touch Keyboard and makes it unusable - windows-store-apps

I'm trying to run the attached project on Windows 10 Pro (latest version available without Windows Insider Program).
Basically it is a fullscreen browser window that navigate to http://www.google.com.
I configured Windows in Tablet mode, in order to let the touch keyboard popup whenever any text field in the page (in this case the query one) gets focused.
Then, I packaged the application with electron-windows-store in order to let electron work as Windows Store application.
When I start the application and Google home page is loaded I'm not able to use the touch keyboard, because it pops up but immediately disappears, like if electron tries to acquire again focus and causes touch keyboard disposal.
I tried also to disable fullscreen mode and setup frame coordinates in order to be as it was in fullscreen, but no success.
Any suggestion?
TestApp.zip
GitHub Repo

This seems to be related to an open issue on the Electron GitHub repository. You might have to wait for the Electron team to introduce this improvement.

I've managed it. The issue was caused by an old dependency to electron. Once updated it to the latest version I know (1.4.7) it all started working.

Related

Chrome/Selenium: use-file-for-fake-video-capture not working anymore

I have automated ui-tests that test a web application in chrome using https://theintern.io/
The application offers a barcode scanner using the device camera (https://github.com/zxing/zxing).
To test this feature, a fake barcode is shown to the application, this has worked until chrome version 90/91 (not quite sure anymore).
Since this version I can not access the fake video anymore.
Chrome-options I have set:
use-fake-device-for-media-stream
use-fake-ui-for-media-stream
`use-file-for-fake-video-capture=${fakeVideoFilePath}`
I can reproduce this outside of the application if I use the chrome window configured with selenium and go to
https://webcamtests.com/
This loads forever - same thing happens inside the application.
The webcam name is the path to the video the camera is supposed to show.
Any hints on what is causing this problem or how it can be solved?
Thanks!
Fixed with Chrome 93.
After the update it is just working again.

How do I remove the PWA install button from Google Chrome?

On my desktop PC, I do not wish to see the PWA install button in my Google Chrome address bar, nor see the option to install in the menu. I have no intention of installing or using them and I don't want to have them constantly pushed into my face.
On my Android phone I want the same, but I also want to see a warning if I am about to install a PWA from the Play Store by accident because it wasn't properly revealed to be a PWA.
Is there a hidden setting or flag in my browser that I can turn off? Can I use Tampermonkey? HELP!
(I don't want to go into detail why I want this except to say that one company is trying to force a PWA on me without offering me the option to get my money back because I'm no longer receiving the software or service I paid for. I also have yet to see a PWA that offers something its website doesn't.)

Navigating back to the same Google Chrome page in Windows 8 after accessing another program

I started developing Android apps using Eclipse IDE with Windows 7. In the course of developing I would be constantly consulting SO via Google Chrome and navigating back to Eclipse IDE to try out a solution that I found; and then back to SO if the solution didn't work.
Recently, I bought a computer with Windows 8, and each time I navigate back to Eclipse (which is on a taskbar on desktop) I lose the SO page that I was on and can't return to it.When I navigate to Google Chrome I just get a new page.I know it sounds so simple, but how do I navigate back to the page I was on previously? ....(I have the same problem with Gmail)
(I would like to be able to continue working in the way I did with Windows 7; if that is possible.)
I think I found the answer to my dilemma: Whenever I navigated back to desktop, I did so by "grabbing" the current page from the top and "dragging" it down; thereby destroying it. I should rather, have navigated via the pop-up window in the top left corner of the screen, thereby conserving the present page..(elementary, my dear Watson)

Re-enable WebGL without restarting Chrome

When Chrome stops WebGL and gives you the following error (in a yellow banner on top of the screen): "Rats! WebGL hit a snag...", and reloading does not work (WebGL is still not re-enabled), is it possible to re-enable WebGL without restarting Chrome?
Context:
Chrome disables WebGL probably because it requires too many resources: I ask it to display 400,000 billboards on Cesium, for those who know what this is.
I know how I could reduce the resources my app asks for, but actually I am exploring its limits for testing purposes. So I am going to make Chrome disable WebGL a lot of times, and I do not want to restart it everytime it disables WebGL.
My configuration:
Chrome 35.0.1916.114 m
Windows 7 Pro 64 bit.
Solutions explored:
I already tried to open a new Chrome window, it does not work. For the moment all I can do is close all Chrome windows and restart it.
I already tried to put --ignore-gpu-blacklist in the Chrome shortcut (even if I understood this is for Windows XP, right?).
Hope I was clear enough.
Thank you for your help.
I was having the same problem and I just found a solution. It sounds like this didn't work back when this question was posted but, it works now!
Refreshing the page doesn't work. If you clicked a link from a different tab to open the tab the crashed, clicking that link again doesn't work. You have to open a new tab and paste in the URL of the page that you want to reload.
I'm guessing this is due to chrome threading... by opening a brand new tab, you create a new thread instead of using the existing one.
In your application you should properly handle webglcontextlost and webglcontextrestored events. In particular, you should prevent default event action in webglcontextlost handler thus telling the browser that you can restore proper functioning of your app when webglcontextrestored will be fired.

xulrunner 17.0.1 browser content links require doubleclick (instead of a single click) on Mac OSX 10.7.x

I am using xulrunner 17.0.1 to convert a web base HTML 5 application to a standalone desktop application. The target platforms are Window XP + and Mac 10.6 +.
While I am able to package and run my HTML 5 application with XULRunner on window without any trouble, I am facing a weird issue on the Mac. Everything seems to be working fine except for I have to double click (instead of single click) on a link of my HTML 5 application to make it works.
To ensure that problem is not in the HTML 5 application I opened mozilla/other websites in the browser component and found that problem is with any content.
Is there any preference setting that I need to change?
Thanks
-pk
I figured out the cause of the problem. I was running my application from Terminal and somehow the focus was always going back to the terminal window, therefore the link were working on double click only. On first click my application window was getting the focus and on second click the link was registering the click event. Similarly the text box were also not taking inputs from keyboard.
I packaged my application as an app using the guidelines provided at "https://developer.mozilla.org/en-US/docs/XULRunner/Deploying_XULRunner_1.8" and that solved all the problems. Everything started working as per expectation.