third_party/subscriptions-project/swg.js
/**
   * Start an activity in a separate window. The result will be delivered
   * to the `onResult` callback.
   *
   * The activity can be opened in two modes: "popup" and "redirect". This
   * depends on the `target` value, but also on the browser/environment.
   *
   * The allowed `target` values are `_blank`, `_top` and name targets. The
   * `_self`, `_parent` and similar targets are not allowed.
   *
   * The `_top` target indicates that the activity should be opened as a
   * "redirect", while other targets indicate that the activity should be
   * opened as a popup. The activity client will try to honor the requested
   * target. However, it's not always possible. Some environments do not
   * allow popups and they either force redirect or fail the window open
   * request. In this case, the activity will try to fallback to the "redirect"
   * mode.
   *
   * @param {string} requestId
   * @param {string} url
   * @param {string} target
   * @param {?Object=} args
   * @param {?web-activities/activity-ports.ActivityOpenOptions=} options
   * @param {boolean=} addDefaultArguments
   * @return {{targetWin: ?Window}}
   */
Start an activity in a separate window. The result will be delivered
to the `onResult` callback.

The activity can be opened in two modes: "popup" and "redirect". This
depends on the `target` value, but also on the browser/environment.



The `_top` target indicates that the activity should be opened as a
"redirect", while other targets indicate that the activity should be
opened as a popup. The activity client will try to honor the requested
target. However, it's not always possible. Some environments do not
allow popups and they either force redirect or fail the window open
request. In this case, the activity will try to fallback to the "redirect"
mode.


Start an activity in a separate window . The result will be delivered to the ` onResult ` callback . The activity can be opened in two modes : " popup " and " redirect " . This depends on the ` target ` value but also on the browser / environment . The ` _top ` target indicates that the activity should be opened as a " redirect " while other targets indicate that the activity should be opened as a popup . The activity client will try to honor the requested target . However it ' s not always possible . Some environments do not allow popups and they either force redirect or fail the window open request . In this case the activity will try to fallback to the " redirect " mode .
open(requestId, url, target, args, options, addDefaultArguments = false) {
    if (addDefaultArguments) {
      args = this.addDefaultArguments(args);
    }
    return this.activityPorts_.open(requestId, url, target, args, options);
  }
open ( requestId , url , target , args , options , addDefaultArguments = false ) { if ( addDefaultArguments ) { args = this . addDefaultArguments ( args ) ; } return this . activityPorts_ . open ( requestId , url , target , args , options ) ; }
Start an activity in a separate window.
Start an activity in a separate window .