ashea-code / BLUI

Rich HTML UI engine for UE4
MIT License
859 stars 259 forks source link

Popups -> Tabs #71

Open getnamo opened 8 years ago

getnamo commented 8 years ago

Just wondering in general about tabbed browsing support. Whenever I click on a link that generates new window request they open new pop up windows in the background. Ideally these would be redirected to a tabbed browser or rejected based on settings.

My understanding is that CEF creates a new window handle and ideally you're supposed to group them somehow or use hidden windows and wait for onbefore load and redirect that request to the current window.

Some resources: http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=196 http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=11274

Thoughts? I don't mind doing the grunt work on this, but you might have better familiarity with how to approach this.

ashea-code commented 8 years ago

Ah yes, this issue somehow got pushed to the wayside a year ago when I started developing this plugin. I think it will be possible to work around this, but it will require some modification to either the BluBrowser code or the actual CEF codebase (yay more patches.)

I'll be looking into this. For now, it should be possible to walk the page using JavaScript and replace all _blank targets. That's dirty for now.