{"action":"created","issue":{"url":"https://api.github.com/repos/rogerwang/node-webkit/issues/2867","labels_url":"https://api.github.com/repos/rogerwang/node-webkit/issues/2867/labels{/name}","comments_url":"https://api.github.com/repos/rogerwang/node-webkit/issues/2867/comments","events_url":"https://api.github.com/repos/rogerwang/node-webkit/issues/2867/events","html_url":"https://github.com/rogerwang/node-webkit/issues/2867","id":52929844,"number":2867,"title":"listeners iframe.addEventListener('load') not trigger for NW0.11","user":{"login":"ghostoy","id":471928,"avatar_url":"https://avatars.githubusercontent.com/u/471928?v=3","gravatar_id":"","url":"https://api.github.com/users/ghostoy","html_url":"https://github.com/ghostoy","followers_url":"https://api.github.com/users/ghostoy/followers","following_url":"https://api.github.com/users/ghostoy/following{/other_user}","gists_url":"https://api.github.com/users/ghostoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ghostoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghostoy/subscriptions","organizations_url":"https://api.github.com/users/ghostoy/orgs","repos_url":"https://api.github.com/users/ghostoy/repos","events_url":"https://api.github.com/users/ghostoy/events{/privacy}","received_events_url":"https://api.github.com/users/ghostoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-26T16:06:35Z","updated_at":"2015-01-03T03:52:21Z","closed_at":null,"body":"Code to reproduce:\r\n\r\n```javascript\r\n  function createIframe() {\r\n    var html = '<iframe style=\"width:100%;height:100%;\"></iframe>';\r\n    var $out = document.getElementById('out').innerHTML = html;\r\n    var $iframe = document.getElementsByTagName('iframe')[0];\r\n\r\n    $iframe.onload = function(){\r\n      console.log('onload');\r\n    };\r\n\r\n    $iframe.addEventListener('load', function() {\r\n      console.log('addEventListener(load)');\r\n    }, false);\r\n\r\n    $iframe.src = 'http://en.wikipedia.org/wiki/Main_Page';\r\n  }\r\n```\r\n\r\nOn 0.10.5, two listeners are triggered. On 0.11.2, 0.11.3, 0.11.4, only \"onload\" listener is triggered.\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/7297577-listeners-iframe-addeventlistener-load-not-trigger-for-nw-0-11-2?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/rogerwang/node-webkit/issues/comments/68582148","html_url":"https://github.com/rogerwang/node-webkit/issues/2867#issuecomment-68582148","issue_url":"https://api.github.com/repos/rogerwang/node-webkit/issues/2867","id":68582148,"user":{"login":"ghostoy","id":471928,"avatar_url":"https://avatars.githubusercontent.com/u/471928?v=3","gravatar_id":"","url":"https://api.github.com/users/ghostoy","html_url":"https://github.com/ghostoy","followers_url":"https://api.github.com/users/ghostoy/followers","following_url":"https://api.github.com/users/ghostoy/following{/other_user}","gists_url":"https://api.github.com/users/ghostoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ghostoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghostoy/subscriptions","organizations_url":"https://api.github.com/users/ghostoy/orgs","repos_url":"https://api.github.com/users/ghostoy/repos","events_url":"https://api.github.com/users/ghostoy/events{/privacy}","received_events_url":"https://api.github.com/users/ghostoy/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T03:52:21Z","updated_at":"2015-01-03T03:52:21Z","body":"Seems like this issue only happens only when devtools is open. If devtools is not open, both events are fired."}}