Bug 1474219 - Follow-up: Simplify check for busy. r=jorgk DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 11 Sep 2018 10:52:53 +0200
changeset 33123 14f5afb1271f69dfcebffaf5c708287fa3c6f462
parent 33122 6e094093b7db6c79d406ddf688e3a73e49e3d102
child 33124 b0465ba354577b801a2e6b9a09bd84dd931963c7
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersjorgk
bugs1474219
Bug 1474219 - Follow-up: Simplify check for busy. r=jorgk DONTBUILD
mail/test/mozmill/shared-modules/test-compose-helpers.js
--- a/mail/test/mozmill/shared-modules/test-compose-helpers.js
+++ b/mail/test/mozmill/shared-modules/test-compose-helpers.js
@@ -255,18 +255,17 @@ function close_compose_window(aControlle
 function wait_for_compose_window(aController) {
   if (aController === undefined)
     aController = mc;
 
   let replyWindow = windowHelper.wait_for_new_window("msgcompose");
 
   let editor = replyWindow.window.document.querySelector("editor");
 
-  if (editor.webNavigation.QueryInterface(Ci.nsIDocShell).busyFlags !=
-        Ci.nsIDocShell.BUSY_FLAGS_NONE) {
+  if (editor.docShell.busyFlags != Ci.nsIDocShell.BUSY_FLAGS_NONE) {
     let editorObserver = {
       editorLoaded: false,
 
       observe: function eO_observe(aSubject, aTopic, aData) {
         if (aTopic == "obs_documentCreated") {
           this.editorLoaded = true;
         }
       }