{"action":"opened","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/14405","repository_url":"https://api.github.com/repos/ariya/phantomjs","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/14405/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/14405/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/14405/events","html_url":"https://github.com/ariya/phantomjs/issues/14405","id":165140066,"number":14405,"title":"injectCallbacksObjIntoFrame does not happen for subframes that navigate","user":{"login":"bughit","id":895588,"avatar_url":"https://avatars.githubusercontent.com/u/895588?v=3","gravatar_id":"","url":"https://api.github.com/users/bughit","html_url":"https://github.com/bughit","followers_url":"https://api.github.com/users/bughit/followers","following_url":"https://api.github.com/users/bughit/following{/other_user}","gists_url":"https://api.github.com/users/bughit/gists{/gist_id}","starred_url":"https://api.github.com/users/bughit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bughit/subscriptions","organizations_url":"https://api.github.com/users/bughit/orgs","repos_url":"https://api.github.com/users/bughit/repos","events_url":"https://api.github.com/users/bughit/events{/privacy}","received_events_url":"https://api.github.com/users/bughit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T17:55:14Z","updated_at":"2016-07-12T17:55:14Z","closed_at":null,"body":"injection happens is setupFrame, which is called from frameCreated and javaScriptWindowObjectCleared of only the main frame\r\n\r\n    connect(m_customWebPage, SIGNAL(frameCreated(QWebFrame*)), this, SLOT(setupFrame(QWebFrame*)), Qt::DirectConnection);\r\nconnect(m_mainFrame, SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(setupFrame()));\r\n\r\nif a subframe navigates, no one listens for its javaScriptWindowObjectCleared to inject\r\n\r\nso it looks like in frameCreated, javaScriptWindowObjectCleared of the frame should be connected\r\n"}}
{"actor":{"display_login":"bughit"}}