docs: function downloadManager_waitForDownloadState(download, state, timeout) {
      this._controller.waitForEval("subject.manager.getDownloadState(subject.download) == subject.state", timeout, 100,
                                   {manager: this, download: download, state: state});
    }