How to open a popup window in USD hosted control ?
Javascript code:
<script>
function basicPopup(url) {
popupWindow = window.open(url,'popUpWindow','height=300,width=700,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes')
}
</script>
<a href="https://www.google.com" onclick="basicPopup(this.href);return false">Open a popup window</a>
USD Window navigation rules
Route Type - Popup, Action - Show Outside , Destination - Tab
Hosting Type: Edge Process/Chrome Process.
Issue: When launching the above JS snippet in a browser, it worked as expected (popup opens with given dimensions and child window able to communicate to parent window with Post message ) whereas the same code integrated with USD, the popup launches in new tab and newly opened window unable to communicate to parent window (window.open() returns null)
Any ideas as to what I'm missing?