{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/html/issues/155","labels_url":"https://api.github.com/repos/whatwg/html/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/html/issues/155/comments","events_url":"https://api.github.com/repos/whatwg/html/issues/155/events","html_url":"https://github.com/whatwg/html/issues/155","id":106816254,"number":155,"title":"Unclear distinction between \"entry\" and \"incumbent\" settings objects","user":{"login":"jyasskin","id":83420,"avatar_url":"https://avatars.githubusercontent.com/u/83420?v=3","gravatar_id":"","url":"https://api.github.com/users/jyasskin","html_url":"https://github.com/jyasskin","followers_url":"https://api.github.com/users/jyasskin/followers","following_url":"https://api.github.com/users/jyasskin/following{/other_user}","gists_url":"https://api.github.com/users/jyasskin/gists{/gist_id}","starred_url":"https://api.github.com/users/jyasskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyasskin/subscriptions","organizations_url":"https://api.github.com/users/jyasskin/orgs","repos_url":"https://api.github.com/users/jyasskin/repos","events_url":"https://api.github.com/users/jyasskin/events{/privacy}","received_events_url":"https://api.github.com/users/jyasskin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/whatwg/html/labels/clarification","name":"clarification","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-16T16:59:49Z","updated_at":"2015-12-09T18:51:39Z","closed_at":null,"body":"The [incumbent settings object](https://html.spec.whatwg.org/#incumbent-settings-object) is the top entry in the [stack of script settings objects](https://html.spec.whatwg.org/#stack-of-script-settings-objects), and the [entry settings object](https://html.spec.whatwg.org/#entry-settings-object) is the top entry that's marked as a [candidate entry settings object](https://html.spec.whatwg.org/#candidate-entry-settings-object). However, I only see [one place](https://html.spec.whatwg.org/#prepare-to-run-a-callback) that pushes an entry onto the stack, and it marks it as a candidate.\r\n\r\nMaybe we can eliminate one of the terms?\r\n\r\nIf not, it'd be good for other spec authors if HTML mentioned how these two terms differ, and how we should choose between them."},"comment":{"url":"https://api.github.com/repos/whatwg/html/issues/comments/163355658","html_url":"https://github.com/whatwg/html/issues/155#issuecomment-163355658","issue_url":"https://api.github.com/repos/whatwg/html/issues/155","id":163355658,"user":{"login":"bzbarsky","id":1457979,"avatar_url":"https://avatars.githubusercontent.com/u/1457979?v=3","gravatar_id":"","url":"https://api.github.com/users/bzbarsky","html_url":"https://github.com/bzbarsky","followers_url":"https://api.github.com/users/bzbarsky/followers","following_url":"https://api.github.com/users/bzbarsky/following{/other_user}","gists_url":"https://api.github.com/users/bzbarsky/gists{/gist_id}","starred_url":"https://api.github.com/users/bzbarsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzbarsky/subscriptions","organizations_url":"https://api.github.com/users/bzbarsky/orgs","repos_url":"https://api.github.com/users/bzbarsky/repos","events_url":"https://api.github.com/users/bzbarsky/events{/privacy}","received_events_url":"https://api.github.com/users/bzbarsky/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T18:51:39Z","updated_at":"2015-12-09T18:51:39Z","body":"The execution context stack probably needs to be updated when calling a DOM method, but the incumbent script context should not be.\r\n\r\nOr to put this in concrete terms, if `[[Call]]` for Web IDL methods is defined more or less like http://www.ecma-international.org/ecma-262/6.0/#sec-built-in-function-objects-call-thisargument-argumentslist then this testcase:\r\n\r\n    frames[0].postMessage(/* stuff */)\r\n\r\nwill have the JS execution context updated to that of `frames[0]` by the time the actual algorithm steps of `postMessage` are reached, while the incumbent script settings object needs to be the calling code.\r\n\r\nOr to put this in a slightly different way, DOM built-in functions are not considered \"different scripts\" for purposes of the stack of script settings objects."}}