-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple web views simultaneously #77
Comments
This is being worked on in the branch devel/multiple-views. It still needs work, but it is already in an usable state. Lots of thanks to @psaavedra and @csaavedra who have been contributing towards getting this done! 💪 |
The changes in the |
Remove WebKitGTK-related code and references to the possibility of building Cog using WebKitGTK instead of WPE WebKit. The rationale for the removal is that the code path is not often used, it increases maintenance effort slightly, the rework for multiple views support (issue #77) will be more complicated if we need to maintain the WebKitGTK support, and finally it is nowadays affordable to run and test Cog with WPE directly on desktop than when the project was started (e.g. using the X11 platform module, or in a nested Wayland compositor).
Remove WebKitGTK-related code and references to the possibility of building Cog using WebKitGTK instead of WPE WebKit. The rationale for the removal is that the code path is not often used, it increases maintenance effort slightly, the rework for multiple views support (issue #77) will be more complicated if we need to maintain the WebKitGTK support, and finally it is nowadays affordable to run and test Cog with WPE directly on desktop than when the project was started (e.g. using the X11 platform module, or in a nested Wayland compositor).
While there has been some work to slowly move this code over to the main branch, it's not there yet, so I am changing the milestone to 0.14 🙃 |
Remove WebKitGTK-related code and references to the possibility of building Cog using WebKitGTK instead of WPE WebKit. The rationale for the removal is that the code path is not often used, it increases maintenance effort slightly, the rework for multiple views support (issue Igalia#77) will be more complicated if we need to maintain the WebKitGTK support, and finally it is nowadays affordable to run and test Cog with WPE directly on desktop than when the project was started (e.g. using the X11 platform module, or in a nested Wayland compositor).
The infrastructure needed for this is now merged the |
Currently Cog supports only a single web view, and it would be interesting to provide support for more than one. In my mind, the minimum that needs to be done is:
CogShell
to contain more than a single web view, one of them considered to be the “active” one.CogShell
to:CogLauncher
.cogctl
for managing multiple web views.The simplest implementation (on the platform plug-in side) would be to only display frames coming from the active view, and keeping around the most recent frame from the other views, so it can be used as the first frame shown when the active view is changed.
There is one problem: when using the fall-back WPE “default” view backend (that is: no platform plug-in is used), we cannot know what the WPE backend implementation will do, therefore in that case I think the safest approach would be disallow creating more than one web view.
The text was updated successfully, but these errors were encountered: