<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Problem Description</h3>
<p dir="auto">window.prompt is not implemented and may break websites that rely on the feature<br>
window.alert etc. are also subpar compared to e.g. Google Chrome implementation</p>
<h3 dir="auto">Proposed Solution</h3>
<p dir="auto">Offer middleware API to define Custom behaviour of these APIs.<br>
The default can stay how it is but it might be good to define custom functions that those window calls then get routed to.</p>
<h3 dir="auto">Alternatives Considered</h3>
<p dir="auto">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.</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto"><strong>Environment:</strong> Windows Sever 2016 + VS 2017.2</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>git clone <a href="https://github.com/electron/electron.git">https://github.com/electron/electron.git</a> D:\Electron\src</li>
<li>Open a clean command prompt and browse to D:\Electron\src</li>
<li>python script\bootstrap.py -v --target_arch=ia32</li>
</ol>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">bootstrap.py run successfully</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The full log info please see attachment.<br>
<a href="https://github.com/electron/electron/files/1144224/electron_x86_bootstrap.txt">electron_x86_bootstrap.txt</a></p>
<p dir="auto">The system cannot find the path specified.<br>
Traceback (most recent call last):<br>
File "vendor\gyp\gyp_main.py", line 16, in <br>
sys.exit(gyp.script_main())<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 545, in script_main<br>
return main(sys.argv[1:])<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 538, in main<br>
return gyp_main(args)<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 514, in gyp_main<br>
options.duplicate_basename_check)<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 98, in Load<br>
generator.CalculateVariables(default_variables, params)<br>
File "vendor\gyp\pylib\gyp\generator\ninja.py", line 1685, in CalculateVariables<br>
gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)<br>
File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 1083, in CalculateCommonVariables<br>
msvs_version = gyp.msvs_emulation.GetVSVersion(generator_flags)<br>
File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 934, in GetVSVersion<br>
allow_fallback=False)<br>
File "vendor\gyp\pylib\gyp\MSVSVersion.py", line 447, in SelectVisualStudioVersion<br>
raise ValueError('Could not locate Visual Studio installation.')<br>
ValueError: Could not locate Visual Studio installation.<br>
Running in verbose mode<br>
git submodule sync --recursive<br>
git submodule update --init --recursive<br>
C:\tools\python2\python.exe setup.py build<br>
C:\tools\python2\python.exe setup.py build<br>
npm.cmd install --verbose<br>
git submodule status vendor/libchromiumcontent<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/8cfd08f84e415f3c8e5fde061f8e17400ef8aa7f/hovercard" href="https://github.com/electron/electron/commit/8cfd08f84e415f3c8e5fde061f8e17400ef8aa7f"><tt>8cfd08f</tt></a> vendor/libchromiumcontent (v51.0.2704.61-375-g8cfd08f)<br>
C:\tools\python2\python.exe D:\Electron\src\script\update.py<br>
None<br>
Traceback (most recent call last):<br>
File "script\bootstrap.py", line 249, in <br>
sys.exit(main())<br>
File "script\bootstrap.py", line 64, in main<br>
run_update(defines, args.msvs)<br>
File "script\bootstrap.py", line 226, in run_update<br>
execute_stdout(args)<br>
File "D:\Electron\src\script\lib\util.py", line 184, in execute_stdout<br>
raise e<br>
subprocess.CalledProcessError: Command '['C:\tools\python2\python.exe', 'D:\Electron\src\script\update.py']' returned non-zero exit status 1</p>