code: function ContentDialog_cancelDismissalPromise(newSignal) {
                      var dismissedSignal = this._dismissedSignal;
                      var newDismissedSignal = this._dismissedSignal = newSignal;
                      dismissedSignal.cancel();
                      return newDismissedSignal;
                  }
docs: Calls into arbitrary app code