{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/3302","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/3302/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/3302/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/3302/events","html_url":"https://github.com/nwjs/nw.js/issues/3302","id":64532897,"number":3302,"title":"Webview not work after gui.Window.open() [$300]","user":{"login":"bachel","id":4592510,"avatar_url":"https://avatars.githubusercontent.com/u/4592510?v=3","gravatar_id":"","url":"https://api.github.com/users/bachel","html_url":"https://github.com/bachel","followers_url":"https://api.github.com/users/bachel/followers","following_url":"https://api.github.com/users/bachel/following{/other_user}","gists_url":"https://api.github.com/users/bachel/gists{/gist_id}","starred_url":"https://api.github.com/users/bachel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bachel/subscriptions","organizations_url":"https://api.github.com/users/bachel/orgs","repos_url":"https://api.github.com/users/bachel/repos","events_url":"https://api.github.com/users/bachel/events{/privacy}","received_events_url":"https://api.github.com/users/bachel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nwjs/nw.js/labels/bounty","name":"bounty","color":"129e5e"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-26T13:58:24Z","updated_at":"2015-04-03T04:41:42Z","closed_at":null,"body":"Webview is loading pages only if webview element is in main page (page specified in package.json as \"main\")\r\n\r\nHere is example code:\r\nPage \"https://google.com\" is never loaded, but \"https://github.com\" load as expected.\r\npackage.json\r\n```javascript\r\n{\r\n  \"name\": \"TEST\",\r\n  \"main\": \"app://test/init.html\"\r\n}\r\n```\r\ninit.html\r\n```javascript\r\n<html>\r\n    <webview src=\"https://github.com\"/>\r\n    <script>\r\n         var gui = require(\"nw.gui\");\r\n         gui.Window.open(\"web.html\")\r\n     </script>\r\n</html>\r\n```\r\n\r\nweb.html\r\n```javascript\r\n<html>\r\n     <webview src=\"https://google.com\"/>\r\n</html>\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nThere is a **[$300 open bounty](https://www.bountysource.com/issues/10042425-webview-not-work-after-gui-window-open?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/89160489","html_url":"https://github.com/nwjs/nw.js/issues/3302#issuecomment-89160489","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/3302","id":89160489,"user":{"login":"kamesh-a","id":3531949,"avatar_url":"https://avatars.githubusercontent.com/u/3531949?v=3","gravatar_id":"","url":"https://api.github.com/users/kamesh-a","html_url":"https://github.com/kamesh-a","followers_url":"https://api.github.com/users/kamesh-a/followers","following_url":"https://api.github.com/users/kamesh-a/following{/other_user}","gists_url":"https://api.github.com/users/kamesh-a/gists{/gist_id}","starred_url":"https://api.github.com/users/kamesh-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamesh-a/subscriptions","organizations_url":"https://api.github.com/users/kamesh-a/orgs","repos_url":"https://api.github.com/users/kamesh-a/repos","events_url":"https://api.github.com/users/kamesh-a/events{/privacy}","received_events_url":"https://api.github.com/users/kamesh-a/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T04:41:42Z","updated_at":"2015-04-03T04:41:42Z","body":"But, creating a webview dom element, from mian container window and appending the dom, in child window from main works fine.\r\n\r\nex: \r\nmainWindow : creating \"webview\" element with any source, src = 'http://google.com';\r\nchildWindow : created with gui.Window.open();\r\nmainWindow : childWindow.appWindow.window.document.body.append(<webviewDOMweCreated>);\r\n\r\nWorks in child. just in case, some one like to use the work around or just to it know this ways gives patch to just work with, until the global Fix comes in.\r\n"}}