{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/3126","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/3126/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/3126/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/3126/events","html_url":"https://github.com/nwjs/nw.js/issues/3126","id":58719578,"number":3126,"title":"Webview : contentWindow not available at this time","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T10:28:53Z","updated_at":"2015-02-24T10:29:44Z","closed_at":null,"body":"Webview tag creation and appending is successful, but only mode of communication with webview is postMessaging. in such case contentWindow is not available.\r\n\r\nsnippet:\r\n```\r\nvar _webview = document.createElement('webview');\r\n_webview.src = \"http://google.com\";\r\ndocument.body.appendChild(_webview);\r\n\r\nconsole.log( _webview.contentWindow );\r\n```\r\nexpected : contentWindow of webview source\r\nbehavior : \"ContentWindow is not available at this time\"\r\n\r\nBut the source frame is completely loaded. onload is triggered properly. take a look at the attached screenshot\r\n\r\n![_webview](https://cloud.githubusercontent.com/assets/3531949/6347417/ff706842-bc3d-11e4-936c-7ebdc1805cd6.png)\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8862288-webview-contentwindow-not-available-at-this-time?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github)** We accept bounties via [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/75732760","html_url":"https://github.com/nwjs/nw.js/issues/3126#issuecomment-75732760","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/3126","id":75732760,"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-02-24T10:29:44Z","updated_at":"2015-02-24T10:29:44Z","body":"Added to it:\r\nWorked in  nwjs : 0.12.0-alpha1\r\nNot working in nwjs : 0.12.0-alpha3"}}