{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/1843","labels_url":"https://api.github.com/repos/atom/electron/issues/1843/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/1843/comments","events_url":"https://api.github.com/repos/atom/electron/issues/1843/events","html_url":"https://github.com/atom/electron/issues/1843","id":83699356,"number":1843,"title":"Webview preload script not surviving webview src change","user":{"login":"frankhale","id":190154,"avatar_url":"https://avatars.githubusercontent.com/u/190154?v=3","gravatar_id":"","url":"https://api.github.com/users/frankhale","html_url":"https://github.com/frankhale","followers_url":"https://api.github.com/users/frankhale/followers","following_url":"https://api.github.com/users/frankhale/following{/other_user}","gists_url":"https://api.github.com/users/frankhale/gists{/gist_id}","starred_url":"https://api.github.com/users/frankhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankhale/subscriptions","organizations_url":"https://api.github.com/users/frankhale/orgs","repos_url":"https://api.github.com/users/frankhale/repos","events_url":"https://api.github.com/users/frankhale/events{/privacy}","received_events_url":"https://api.github.com/users/frankhale/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/electron/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/atom/electron/labels/webview","name":"webview","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-01T21:22:00Z","updated_at":"2015-06-03T16:24:45Z","closed_at":"2015-06-03T07:02:39Z","body":"I stated 0.27.2 in the issue topic but for me it broke after 0.23. I need a sanity check here. I'm doing a very basic ping/pong type IPC with my applications main window and a webview. This works perfectly fine for me on version 0.23.0 but breaks at 0.24.0 and all the way up to today with 0.27.2. I've looked at the dev tools for the webview and I can tell that my preload script is running but doing any IPC sends never makes it to the webview.\r\n\r\n**Same code works fine in 0.23.0 and breaks in 0.24 -> 0.27.2.**\r\n\r\nI'm doing exactly the same very basic IPC as listed in:\r\n\r\nhttps://github.com/atom/electron/blob/master/docs/api/web-view-tag.md#ipc-message\r\n\r\n```javascript\r\n// In embedder page.\r\nwebview.addEventListener('ipc-message', function(event) {\r\n  console.log(event.channel);\r\n  // Prints \"pong\"\r\n});\r\nwebview.send('ping');\r\n\r\n.....\r\n\r\n// In guest page.\r\nvar ipc = require('ipc');\r\nipc.on('ping', function() {\r\n  ipc.sendToHost('pong');\r\n})\r\n```\r\n\r\nIs anyone else having issues with IPC in webviews?"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/108510107","html_url":"https://github.com/atom/electron/issues/1843#issuecomment-108510107","issue_url":"https://api.github.com/repos/atom/electron/issues/1843","id":108510107,"user":{"login":"frankhale","id":190154,"avatar_url":"https://avatars.githubusercontent.com/u/190154?v=3","gravatar_id":"","url":"https://api.github.com/users/frankhale","html_url":"https://github.com/frankhale","followers_url":"https://api.github.com/users/frankhale/followers","following_url":"https://api.github.com/users/frankhale/following{/other_user}","gists_url":"https://api.github.com/users/frankhale/gists{/gist_id}","starred_url":"https://api.github.com/users/frankhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankhale/subscriptions","organizations_url":"https://api.github.com/users/frankhale/orgs","repos_url":"https://api.github.com/users/frankhale/repos","events_url":"https://api.github.com/users/frankhale/events{/privacy}","received_events_url":"https://api.github.com/users/frankhale/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T16:24:45Z","updated_at":"2015-06-03T16:24:45Z","body":"Thank you!!"}}