From 289344a74a6d92e1d54b6a394e3bc4b689e9d1e8 Mon Sep 17 00:00:00 2001 From: Hussain Date: Wed, 29 Jul 2015 21:31:39 +0530 Subject: [PATCH 1/2] Resolve Brackets freezing/crashing on windows on reload. Workaround to resolve brackets freezing and crashing on some windows OS on installing/uninstalling extensions and on reload. Issue Reference: https://github.com/adobe/brackets/issues/11477 --- src/document/DocumentCommandHandlers.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/document/DocumentCommandHandlers.js b/src/document/DocumentCommandHandlers.js index ce553e7113f..bec2d0e6986 100644 --- a/src/document/DocumentCommandHandlers.js +++ b/src/document/DocumentCommandHandlers.js @@ -1634,8 +1634,11 @@ define(function (require, exports, module) { if (fragment !== -1) { href = href.substr(0, fragment); } - - window.location.href = href; + // Defer for a more successful reload. + setTimeout(function(){ + window.location.href = href; + },1000) + }); }).fail(function () { _isReloading = false; From 8c9802373f7ecb9546792519229f6b13f5884043 Mon Sep 17 00:00:00 2001 From: Hussain Date: Wed, 29 Jul 2015 21:55:27 +0530 Subject: [PATCH 2/2] Update DocumentCommandHandlers.js --- src/document/DocumentCommandHandlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/DocumentCommandHandlers.js b/src/document/DocumentCommandHandlers.js index bec2d0e6986..b2ac3d741fe 100644 --- a/src/document/DocumentCommandHandlers.js +++ b/src/document/DocumentCommandHandlers.js @@ -1637,7 +1637,7 @@ define(function (require, exports, module) { // Defer for a more successful reload. setTimeout(function(){ window.location.href = href; - },1000) + },1000); }); }).fail(function () {