#1572·nativefier

Js Alert window Autofocus to menubar

Author: prequiet-LCreated Sep 11, 2023Updated Sep 11, 2023
Labelsbug

Homework

Nativefier command

nativefier --name 'Trident' 'pamban.in' --clear-cache --file-download-options '{"saveAs": true}' --disable-dev-tools --icon "logo.ico" --hide-window-frame

Steps to reproduce

  1. Js alert function is ther in a website "alert('Test');"
    1. After clicking on ok button the textboxes in the webview is not accessible.
  2. found that after click on ok in the alert it is bring the control to menu bar.
  3. tried hidding menubar also tried disabling window but still menubar is taking control.
  4. after pressing alt key twise textboxes are active and working fine.
  5. same code working good in other browser. image image

Expected behavior

after clicking on ok in alert it should bring control to webview automatically.

Actual behavior

it is bringing autofocus to nativefier menubar

Debug info

No response

Nativefier version

52.0.0

Node.js version

18.7.1

npm version

9.6.7

OS

windows 10 , windows 11, windows 8.1