Comments (8)
Atom-shell guarantees that closing window would trigger beforeunload
and unload
event in javascript, so an infinite loop would block the close event. Simply make the x on window work would break this guarantee.
I'll add a way to make browser aware of the infinite loop in renderer, so users can choose to (1) force closing the window; (2) continue waiting; (3) interrupt the loop and report the stack trace.
from electron.
Yeah, a force close prompt would be great.
from electron.
This appears to have regressed.
from electron.
This appears to have regressed again.
from electron.
@nathansobo I can not reproduce with following steps:
- open devtools and run
while(true);
- click window's close button
- wait for 5s and the
Editor is not responding
dialog shows
from electron.
@zcbenz Strange. It's happening for me in certain specs, I think in situations where the spec pretty printer is trying to print way more than it can handle. If you put an endless loop in specs and run them, is it possible to reproduce?
from electron.
Seems that the unresponsive dialog is suppressed in specs:
https://github.com/atom/atom/blob/master/src/browser/atom-window.coffee#L96
from electron.
Wow, sorry about that.
from electron.
Related Issues (20)
- [Bug]: desktopCapturer.getSources returns id of "window:xx:0" even when monitor is chosen
- [Bug]: findInPage() is Freezing Electron App HOT 1
- spec crash in std::vector __throw_out_of_range
- [Bug]: Label cutting issue on Brother QL800 HOT 1
- [Bug]: <webView>.methods not available in preload script HOT 5
- [Bug]: not support h265 HOT 1
- [Bug]: nativeImage.createThumbnailFromPath fails to resolve in renderer process from version 25.0.0 HOT 3
- main executable failed strict validation HOT 1
- [Bug]: install, RequestError: getaddrinfo ENOTFOUND HOT 1
- [Bug]: My Node Addon stopped working after version 20.3.8 HOT 1
- [Bug]: Maximizing a frameless window with background material (Mica) permanently breaks the window
- [Bug]: Custom protocol called many times with huge video files HOT 5
- [Bug]: app.getGPUInfo('complete') can't get videoDecodeAcceleratorSupportedProfile in some versions and platform HOT 1
- Reopen issue #40936 HOT 1
- [Bug]: 30.0.0-alpha7 and up crash on fullscreen with SIGSEGV HOT 9
- [Bug]: Font substituting while printing doesn't work on Windows Server 2016 HOT 2
- [Bug]: in my electron i am using multiple webview and i am not able to get which webview is in focus or even onclick event HOT 2
- feature request: allow build with enable_extensions=false HOT 2
- [Feature Request]: Possibility to set a default zoom level
- [Bug]: WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron.