I tried this in Unity5.2 and it was causing a crash then I noticed the crash was fixed in Unity 5.3. I’ve just tried it the latest beta and it works but I was hoping it wouldn’t replace the current contents of the browser.
Is there a workaround for this? Maybe call some javascript of something?
We’re planning on spawning youtube videos because we’re having some issues playing videos using the normal normal WebGL method of copying the contents of a hidden video to a texture2D. This method is working perfectly on every machine & platform we’ve tried it on except the clients Windows 7 machine on both chrome & firefox.
The way most popup-blockers work is that they only allow pop-ups in direct response to user input events.
Now, the problem is that due to the way input is processed in Unity’s main loop, when you receive an input event in Unity, this is already too late to qualify as a “direct user response” (Compare http://docs.unity3d.com/Manual/webgl-cursorfullscreen.html which documents the same issue).
A solution can be to install an even handler on the mouseUp event in JavaScript, which would open the web page, which you can previously set up when receiving a mouse down event in Unity.