{"action":"created","issue":{"url":"https://api.github.com/repos/ui4j/ui4j/issues/45","labels_url":"https://api.github.com/repos/ui4j/ui4j/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/ui4j/ui4j/issues/45/comments","events_url":"https://api.github.com/repos/ui4j/ui4j/issues/45/events","html_url":"https://github.com/ui4j/ui4j/issues/45","id":86194472,"number":45,"title":"Creating new Engine takes very long","user":{"login":"hstaudacher","id":289648,"avatar_url":"https://avatars.githubusercontent.com/u/289648?v=3","gravatar_id":"","url":"https://api.github.com/users/hstaudacher","html_url":"https://github.com/hstaudacher","followers_url":"https://api.github.com/users/hstaudacher/followers","following_url":"https://api.github.com/users/hstaudacher/following{/other_user}","gists_url":"https://api.github.com/users/hstaudacher/gists{/gist_id}","starred_url":"https://api.github.com/users/hstaudacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hstaudacher/subscriptions","organizations_url":"https://api.github.com/users/hstaudacher/orgs","repos_url":"https://api.github.com/users/hstaudacher/repos","events_url":"https://api.github.com/users/hstaudacher/events{/privacy}","received_events_url":"https://api.github.com/users/hstaudacher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ui4j/ui4j/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"ui4j","id":8233839,"avatar_url":"https://avatars.githubusercontent.com/u/8233839?v=3","gravatar_id":"","url":"https://api.github.com/users/ui4j","html_url":"https://github.com/ui4j","followers_url":"https://api.github.com/users/ui4j/followers","following_url":"https://api.github.com/users/ui4j/following{/other_user}","gists_url":"https://api.github.com/users/ui4j/gists{/gist_id}","starred_url":"https://api.github.com/users/ui4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ui4j/subscriptions","organizations_url":"https://api.github.com/users/ui4j/orgs","repos_url":"https://api.github.com/users/ui4j/repos","events_url":"https://api.github.com/users/ui4j/events{/privacy}","received_events_url":"https://api.github.com/users/ui4j/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ui4j/ui4j/milestones/6","html_url":"https://github.com/ui4j/ui4j/milestones/2.0.0","labels_url":"https://api.github.com/repos/ui4j/ui4j/milestones/6/labels","id":1136700,"number":6,"title":"2.0.0","description":null,"creator":{"login":"ui4j","id":8233839,"avatar_url":"https://avatars.githubusercontent.com/u/8233839?v=3","gravatar_id":"","url":"https://api.github.com/users/ui4j","html_url":"https://github.com/ui4j","followers_url":"https://api.github.com/users/ui4j/followers","following_url":"https://api.github.com/users/ui4j/following{/other_user}","gists_url":"https://api.github.com/users/ui4j/gists{/gist_id}","starred_url":"https://api.github.com/users/ui4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ui4j/subscriptions","organizations_url":"https://api.github.com/users/ui4j/orgs","repos_url":"https://api.github.com/users/ui4j/repos","events_url":"https://api.github.com/users/ui4j/events{/privacy}","received_events_url":"https://api.github.com/users/ui4j/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":18,"state":"open","created_at":"2015-05-27T19:24:01Z","updated_at":"2015-06-11T07:24:46Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-06-08T14:18:19Z","updated_at":"2015-06-11T10:03:20Z","closed_at":null,"body":"I wanted to have isolated session using the BrowserEngine. What I did is to create a new `WebKitBrowserProvider`, creating engines, shutting down and create new ones. This is because I fount no other way to create isolated sessions. The second time the engine will be create takes ages. This is a unit test to reproduce. \r\n\r\n```java\r\n@Test\r\n  public void testCanCreateNewSession() {\r\n    WebKitBrowserProvider provider = new WebKitBrowserProvider();\r\n    provider.setShutdownListener( engine -> {} );\r\n    BrowserEngine engine = provider.create();\r\n    engine.navigate( \"http://google.com\" );\r\n    engine.shutdown();\r\n    BrowserEngine engine2 = provider.create();\r\n    engine2.navigate( \"http://google.com\" );\r\n  }\r\n```\r\nAnything you can do about it?\r\n"},"comment":{"url":"https://api.github.com/repos/ui4j/ui4j/issues/comments/111073951","html_url":"https://github.com/ui4j/ui4j/issues/45#issuecomment-111073951","issue_url":"https://api.github.com/repos/ui4j/ui4j/issues/45","id":111073951,"user":{"login":"hstaudacher","id":289648,"avatar_url":"https://avatars.githubusercontent.com/u/289648?v=3","gravatar_id":"","url":"https://api.github.com/users/hstaudacher","html_url":"https://github.com/hstaudacher","followers_url":"https://api.github.com/users/hstaudacher/followers","following_url":"https://api.github.com/users/hstaudacher/following{/other_user}","gists_url":"https://api.github.com/users/hstaudacher/gists{/gist_id}","starred_url":"https://api.github.com/users/hstaudacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hstaudacher/subscriptions","organizations_url":"https://api.github.com/users/hstaudacher/orgs","repos_url":"https://api.github.com/users/hstaudacher/repos","events_url":"https://api.github.com/users/hstaudacher/events{/privacy}","received_events_url":"https://api.github.com/users/hstaudacher/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T10:03:20Z","updated_at":"2015-06-11T10:03:20Z","body":"Hmm, after thinking about it the concept in UI4J that comes next to a session is the `Page`. Each page has it's own interceptor and handlers. So, the solution here would be to isolate Pages, right? This would remove the need to shutdown the engine and so on. So, every user could have the same engine but work on a different page that is isolated form each other. What do you think?"}}