if (arguments.length === 1) {
      target = '_blank';
    }
Try to open the given url in a secure fashion. The method returns a Promise object.
If a target is passed (including undefined) that target will be used, otherwise '_blank'.
If the url opens, the promise is resolved. If not, the promise is rejected.
Dispatches the `onOpen` event if `url` is opened successfully.