window.open terminated the universal application
<p>I am creating an application Universial Windows 10 using WinJS. But my application is always crashed once I call the function window.open. Here is the code:</p>

<p>ref = window.open(authorizationUri, '_blank', 'location=yes')</p>

<pre><code>        if (!ref) {
            deferred.reject(new Microsoft.Utility.Exception('The logon dialog was blocked by popup blocker'));
        } else {
            ref.addEventListener('loadstart', onRedirect);
            if (window["tinyHippos"]) {
                window["__rippleFireEvent"] = onRedirect;
            }
        }
</code></pre>

<p>Can anyone help me plz? Many many thanks!!!</p>