Bug 1628485 - Fix debugQA's text editor close. r=frg DONTBUILD
authorIan Neal <iann_cvs@blueyonder.co.uk>
Wed, 08 Apr 2020 21:57:46 +0100
changeset 38085 cabba8a9207c820e297795a8c583649be8117916
parent 38084 e7b674413abcf2ef2c95d494a4fc16dceb195fa3
child 38086 f0b4e54336899ce27ebdaba4ad99d6f3ee9efcbd
push id2595
push userclokep@gmail.com
push dateMon, 04 May 2020 19:02:04 +0000
treeherdercomm-beta@f53913797371 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg
bugs1628485
Bug 1628485 - Fix debugQA's text editor close. r=frg DONTBUILD
suite/extensions/debugQA/content/debugQATextEditorShell.xul
--- a/suite/extensions/debugQA/content/debugQATextEditorShell.xul
+++ b/suite/extensions/debugQA/content/debugQATextEditorShell.xul
@@ -24,17 +24,17 @@
 %editorOverlayDTD;
 ]>
 
 <!-- NOTE: If we don't have "title" set, text editor doesn't work! -->
 <window id="editorWindow"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         onload="TextEditorOnLoad()"
         onunload="EditorShutdown()"
-        onclose="return EditorCanClose()"
+        onclose="return Async.promiseSpinningly(EditorCanClose());"
         onfocus="EditorOnFocus()"
         contenttitlesetting="true"
         title=""
         titlemodifier="&textEditorWindow.titlemodifier;"
         titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
         toggletoolbar="true"
         lightweightthemes="true"
         lightweightthemesfooter="status-bar"