Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

window.prompt is not implemented and may break websites that rely on the feature

window.alert etc. are also subpar compared to e.g. Google Chrome implementation

Proposed Solution

Offer middleware API to define Custom behaviour of these APIs.

The default can stay how it is but it might be good to define custom functions that those window calls then get routed to.

Alternatives Considered

I know it's not too important for the content of the App but for things like building an In-App browser etc., the experience is currently a lot worse than Google Chrome and similar.

Additional Information

No response

Issue 2:
Environment: Windows Sever 2016 + VS 2017.2

How to reproduce

git clone https://github.com/electron/electron.git D:\Electron\src

Open a clean command prompt and browse to D:\Electron\src

python script\bootstrap.py -v --target_arch=ia32

Expected behavior

bootstrap.py run successfully

Actual behavior

The full log info please see attachment.

electron_x86_bootstrap.txt

The system cannot find the path specified.

Traceback (most recent call last):

File "vendor\gyp\gyp_main.py", line 16, in

sys.exit(gyp.script_main())

File "vendor\gyp\pylib\gyp_init_.py", line 545, in script_main

return main(sys.argv[1:])

File "vendor\gyp\pylib\gyp_init_.py", line 538, in main

return gyp_main(args)

File "vendor\gyp\pylib\gyp_init_.py", line 514, in gyp_main

options.duplicate_basename_check)

File "vendor\gyp\pylib\gyp_init_.py", line 98, in Load

generator.CalculateVariables(default_variables, params)

File "vendor\gyp\pylib\gyp\generator\ninja.py", line 1685, in CalculateVariables

gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)

File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 1083, in CalculateCommonVariables

msvs_version = gyp.msvs_emulation.GetVSVersion(generator_flags)

File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 934, in GetVSVersion

allow_fallback=False)

File "vendor\gyp\pylib\gyp\MSVSVersion.py", line 447, in SelectVisualStudioVersion

raise ValueError('Could not locate Visual Studio installation.')

ValueError: Could not locate Visual Studio installation.

Running in verbose mode

git submodule sync --recursive

git submodule update --init --recursive

C:\tools\python2\python.exe setup.py build

C:\tools\python2\python.exe setup.py build

npm.cmd install --verbose

git submodule status vendor/libchromiumcontent

8cfd08f vendor/libchromiumcontent (v51.0.2704.61-375-g8cfd08f)

C:\tools\python2\python.exe D:\Electron\src\script\update.py

None

Traceback (most recent call last):

File "script\bootstrap.py", line 249, in

sys.exit(main())

File "script\bootstrap.py", line 64, in main

run_update(defines, args.msvs)

File "script\bootstrap.py", line 226, in run_update

execute_stdout(args)

File "D:\Electron\src\script\lib\util.py", line 184, in execute_stdout

raise e

subprocess.CalledProcessError: Command '['C:\tools\python2\python.exe', 'D:\Electron\src\script\update.py']' returned non-zero exit status 1