{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/614","repository_url":"https://api.github.com/repos/mozilla/geckodriver","labels_url":"https://api.github.com/repos/mozilla/geckodriver/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/geckodriver/issues/614/comments","events_url":"https://api.github.com/repos/mozilla/geckodriver/issues/614/events","html_url":"https://github.com/mozilla/geckodriver/issues/614","id":220288743,"node_id":"MDU6SXNzdWUyMjAyODg3NDM=","number":614,"title":"\"TypeError: can't access dead object\" if the frame is removed from under us","user":{"login":"barancev","id":617090,"node_id":"MDQ6VXNlcjYxNzA5MA==","avatar_url":"https://avatars2.githubusercontent.com/u/617090?v=4","gravatar_id":"","url":"https://api.github.com/users/barancev","html_url":"https://github.com/barancev","followers_url":"https://api.github.com/users/barancev/followers","following_url":"https://api.github.com/users/barancev/following{/other_user}","gists_url":"https://api.github.com/users/barancev/gists{/gist_id}","starred_url":"https://api.github.com/users/barancev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barancev/subscriptions","organizations_url":"https://api.github.com/users/barancev/orgs","repos_url":"https://api.github.com/users/barancev/repos","events_url":"https://api.github.com/users/barancev/events{/privacy}","received_events_url":"https://api.github.com/users/barancev/received_events","type":"User","site_admin":false},"labels":[{"id":260150409,"node_id":"MDU6TGFiZWwyNjAxNTA0MDk=","url":"https://api.github.com/repos/mozilla/geckodriver/labels/marionette","name":"marionette","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-04-07T18:12:36Z","updated_at":"2018-07-18T14:35:21Z","closed_at":null,"author_association":"NONE","body":"## Firefox Version\r\n55.0a1 (2017-04-06) (64-bit)\r\ngeckodriver 0.15\r\n\r\n## Platform\r\nWindows 7\r\n\r\n## Steps to reproduce\r\nJava Selenium test FrameSwitchingTest.testShouldNotBeAbleToDoAnythingTheFrameIsDeletedFromUnderUs, the main part is:\r\n```\r\n    driver.switchTo().frame(\"iframe1\");\r\n    driver.findElement(By.id(\"killIframe\")).click(); // deletes the current frame\r\n    driver.findElement(By.id(\"killIframe\")); // try to do something\r\n```\r\n\r\nNoSuchFrameException is expected, but the trace is:\r\n```\r\n1491588306354\twebdriver::server\tDEBUG\tGot request POST AbsolutePath(\"/session/b64f0a3e-5caf-485a-a2fa-e18fd8817b2e/element\")\r\n1491588306354\twebdriver::command\tDEBUG\tGot request body {\"value\":\"#killIframe\",\"using\":\"css selector\"}\r\n1491588306354\tgeckodriver::marionette\tDEBUG\t→ 66:[0,8,\"findElement\",{\"using\":\"css selector\",\"value\":\"#killIframe\"}]\r\n1491588306356\tMarionette\tTRACE\t0 -> [0,8,\"findElement\",{\"using\":\"css selector\",\"value\":\"#killIframe\"}]\r\n*************************\r\nA coding exception was thrown and uncaught in a Task.\r\n\r\nFull message: TypeError: can't access dead object\r\nFull stack: find_@chrome://marionette/content/element.js:290:7\r\nelement.find/</findElements<@chrome://marionette/content/element.js:256:17\r\nevalFn@chrome://marionette/content/wait.js:70:7\r\nwait.until/<@chrome://marionette/content/wait.js:84:5\r\nwait.until@chrome://marionette/content/wait.js:65:10\r\nelement.find/<@chrome://marionette/content/element.js:255:24\r\nelement.find@chrome://marionette/content/element.js:254:10\r\nfindElementContent@chrome://marionette/content/listener.js:1199:18\r\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\r\nTaskImpl@resource://gre/modules/Task.jsm:277:3\r\nasyncFunction@resource://gre/modules/Task.jsm:252:14\r\nTask_spawn@resource://gre/modules/Task.jsm:166:12\r\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\r\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\r\nTaskImpl@resource://gre/modules/Task.jsm:277:3\r\nasyncFunction@resource://gre/modules/Task.jsm:252:14\r\nTask_spawn@resource://gre/modules/Task.jsm:166:12\r\ndispatch/<@chrome://marionette/content/listener.js:363:15\r\n\r\n*************************\r\n*************************\r\nA coding exception was thrown and uncaught in a Task.\r\n\r\nFull message: TypeError: can't access dead object\r\nFull stack: find_@chrome://marionette/content/element.js:290:7\r\nelement.find/</findElements<@chrome://marionette/content/element.js:256:17\r\nevalFn@chrome://marionette/content/wait.js:70:7\r\nwait.until/<@chrome://marionette/content/wait.js:84:5\r\nwait.until@chrome://marionette/content/wait.js:65:10\r\nelement.find/<@chrome://marionette/content/element.js:255:24\r\nelement.find@chrome://marionette/content/element.js:254:10\r\nfindElementContent@chrome://marionette/content/listener.js:1199:18\r\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\r\nTaskImpl@resource://gre/modules/Task.jsm:277:3\r\nasyncFunction@resource://gre/modules/Task.jsm:252:14\r\nTask_spawn@resource://gre/modules/Task.jsm:166:12\r\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\r\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\r\nTaskImpl@resource://gre/modules/Task.jsm:277:3\r\nasyncFunction@resource://gre/modules/Task.jsm:252:14\r\nTask_spawn@resource://gre/modules/Task.jsm:166:12\r\ndispatch/<@chrome://marionette/content/listener.js:363:15\r\n\r\n*************************\r\n1491588306360\tMarionette\tTRACE\t0 <- [1,8,{\"error\":\"webdriver error\",\"message\":\"TypeError: can't access dead object\",\"stacktrace\":\"find_@chrome://marionette/content/element.js:290:7\\nelement.find/</findElements<@chrome://marionette/content/element.js:256:17\\nevalFn@chrome://marionette/content/wait.js:70:7\\nwait.until/<@chrome://marionette/content/wait.js:84:5\\nwait.until@chrome://marionette/content/wait.js:65:10\\nelement.find/<@chrome://marionette/content/element.js:255:24\\nelement.find@chrome://marionette/content/element.js:254:10\\nfindElementContent@chrome://marionette/content/listener.js:1199:18\\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\\nTaskImpl@resource://gre/modules/Task.jsm:277:3\\nasyncFunction@resource://gre/modules/Task.jsm:252:14\\nTask_spawn@resource://gre/modules/Task.jsm:166:12\\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\\nTaskImpl@resource://gre/modules/Task.jsm:277:3\\nasyncFunction@resource://gre/modules/Task.jsm:252:14\\nTask_spawn@resource://gre/modules/Task.jsm:166:12\\ndispatch/<@chrome://marionette/content/listener.js:363:15\\n\"},null]\r\n1491588306360\tgeckodriver::marionette\tDEBUG\t← [1,8,{\"error\":\"webdriver error\",\"message\":\"TypeError: can't access dead object\",\"stacktrace\":\"find_@chrome://marionette/content/element.js:290:7\\nelement.find/</findElements<@chrome://marionette/content/element.js:256:17\\nevalFn@chrome://marionette/content/wait.js:70:7\\nwait.until/<@chrome://marionette/content/wait.js:84:5\\nwait.until@chrome://marionette/content/wait.js:65:10\\nelement.find/<@chrome://marionette/content/element.js:255:24\\nelement.find@chrome://marionette/content/element.js:254:10\\nfindElementContent@chrome://marionette/content/listener.js:1199:18\\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\\nTaskImpl@resource://gre/modules/Task.jsm:277:3\\nasyncFunction@resource://gre/modules/Task.jsm:252:14\\nTask_spawn@resource://gre/modules/Task.jsm:166:12\\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\\nTaskImpl@resource://gre/modules/Task.jsm:277:3\\nasyncFunction@resource://gre/modules/Task.jsm:252:14\\nTask_spawn@resource://gre/modules/Task.jsm:166:12\\ndispatch/<@chrome://marionette/content/listener.js:363:15\\n\"},null]\r\n1491588306361\twebdriver::server\tDEBUG\tReturning status InternalServerError\r\n1491588306361\twebdriver::server\tDEBUG\tReturning body {\"value\":{\"error\":\"unknown error\",\"message\":\"TypeError: can't access dead object\",\"stacktrace\":\"stack backtrace:\\n   0:           0x61f07f - <no info>\\n   1:           0x61fe59 - <no info>\\n   2:           0x43b0b5 - <no info>\\n   3:           0x420313 - <no info>\\n   4:           0x408307 - <no info>\\n   5:           0x6750f9 - <no info>\\n   6:           0x416877 - <no info>\\n   7:           0x66ed53 - <no info>\\n   8:         0x76da59cd - BaseThreadInitThunk\"}}\r\n```"},"comment":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/comments/405953208","html_url":"https://github.com/mozilla/geckodriver/issues/614#issuecomment-405953208","issue_url":"https://api.github.com/repos/mozilla/geckodriver/issues/614","id":405953208,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTk1MzIwOA==","user":{"login":"alexlazarciuc","id":10537190,"node_id":"MDQ6VXNlcjEwNTM3MTkw","avatar_url":"https://avatars3.githubusercontent.com/u/10537190?v=4","gravatar_id":"","url":"https://api.github.com/users/alexlazarciuc","html_url":"https://github.com/alexlazarciuc","followers_url":"https://api.github.com/users/alexlazarciuc/followers","following_url":"https://api.github.com/users/alexlazarciuc/following{/other_user}","gists_url":"https://api.github.com/users/alexlazarciuc/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlazarciuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlazarciuc/subscriptions","organizations_url":"https://api.github.com/users/alexlazarciuc/orgs","repos_url":"https://api.github.com/users/alexlazarciuc/repos","events_url":"https://api.github.com/users/alexlazarciuc/events{/privacy}","received_events_url":"https://api.github.com/users/alexlazarciuc/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T14:35:21Z","updated_at":"2018-07-18T14:35:21Z","author_association":"NONE","body":"Hi folks,\r\n\r\nJust wondering if this was fixed? I'm using geckodriver 0.21.0 and Firefox 61 and in some cases after using a frame - the page gets reloaded, I get the \"System.InvalidOperationException : TypeError: can't access dead object\" error? \r\n\r\nThanks!"}}
{"actor":{"display_login":"alexlazarciuc"}}