{"action":"created","comment":{"url":"https://api.github.com/repos/whatwg/html/pulls/comments/42875187","id":42875187,"diff_hunk":"@@ -80353,6 +80353,10 @@ x === this; // true</pre>\n   This prevents values from being displayed incorrectly after a history traversal when the user had\n   originally entered the values with an explicit, non-default directionality.</p>\n \n+  <p>An entry's <dfn>scroll restoration preference</dfn> indicates whether the user agent should","path":"source","position":4,"original_position":4,"commit_id":"4787a838177c2c8544fda907613a3ed48030a531","original_commit_id":"4787a838177c2c8544fda907613a3ed48030a531","user":{"login":"majido","id":944639,"avatar_url":"https://avatars.githubusercontent.com/u/944639?v=3","gravatar_id":"","url":"https://api.github.com/users/majido","html_url":"https://github.com/majido","followers_url":"https://api.github.com/users/majido/followers","following_url":"https://api.github.com/users/majido/following{/other_user}","gists_url":"https://api.github.com/users/majido/gists{/gist_id}","starred_url":"https://api.github.com/users/majido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majido/subscriptions","organizations_url":"https://api.github.com/users/majido/orgs","repos_url":"https://api.github.com/users/majido/repos","events_url":"https://api.github.com/users/majido/events{/privacy}","received_events_url":"https://api.github.com/users/majido/received_events","type":"User","site_admin":false},"body":"It does what you asked for which is to determine who is responsible for scroll restoration. If you think preference may not be accurate we can use 'mode' which I have seen used elsewhere in the spec.\r\n\r\nAnother alternative is to use 'flag' given the binary nature of auto/manual. In that case I think we should use 'manual scroll restoration flag' and refer to it as getting set or unset.","created_at":"2015-10-23T15:04:09Z","updated_at":"2015-10-23T15:04:09Z","html_url":"https://github.com/whatwg/html/pull/278#discussion_r42875187","pull_request_url":"https://api.github.com/repos/whatwg/html/pulls/278","_links":{"self":{"href":"https://api.github.com/repos/whatwg/html/pulls/comments/42875187"},"html":{"href":"https://github.com/whatwg/html/pull/278#discussion_r42875187"},"pull_request":{"href":"https://api.github.com/repos/whatwg/html/pulls/278"}}},"pull_request":{"url":"https://api.github.com/repos/whatwg/html/pulls/278","id":48494779,"html_url":"https://github.com/whatwg/html/pull/278","diff_url":"https://github.com/whatwg/html/pull/278.diff","patch_url":"https://github.com/whatwg/html/pull/278.patch","issue_url":"https://api.github.com/repos/whatwg/html/issues/278","number":278,"state":"open","locked":false,"title":"Add scroll restoration preference to history traversal","user":{"login":"majido","id":944639,"avatar_url":"https://avatars.githubusercontent.com/u/944639?v=3","gravatar_id":"","url":"https://api.github.com/users/majido","html_url":"https://github.com/majido","followers_url":"https://api.github.com/users/majido/followers","following_url":"https://api.github.com/users/majido/following{/other_user}","gists_url":"https://api.github.com/users/majido/gists{/gist_id}","starred_url":"https://api.github.com/users/majido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majido/subscriptions","organizations_url":"https://api.github.com/users/majido/orgs","repos_url":"https://api.github.com/users/majido/repos","events_url":"https://api.github.com/users/majido/events{/privacy}","received_events_url":"https://api.github.com/users/majido/received_events","type":"User","site_admin":false},"body":"The API is [shipped][chrome status] in latest stable Chrome (since M46). The API design\r\nwas discussed on [WhatWG mailing list][WhatWG discussion]. The patch does the following:\r\n\r\n- Define [history.scrollRestoration][draft spec] and update relevant IDL\r\n- Add a new persisted user state restoration algorithm\r\n\r\nOnce merge I will close the original [W3C bug][W3C bug].\r\n\r\n[chrome status]: https://www.chromestatus.com/features/5657284784947200\r\n[draft spec]: http://majido.github.io/scroll-restoration-proposal/history-based-api.html\r\n[W3C bug]: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28553\r\n[WhatWG discussion]:  https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Mar/0070.html\r\n","created_at":"2015-10-22T18:32:31Z","updated_at":"2015-10-23T15:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7e3126ed732dbe5592ad1084be772c3922897b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/whatwg/html/pulls/278/commits","review_comments_url":"https://api.github.com/repos/whatwg/html/pulls/278/comments","review_comment_url":"https://api.github.com/repos/whatwg/html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/whatwg/html/issues/278/comments","statuses_url":"https://api.github.com/repos/whatwg/html/statuses/4787a838177c2c8544fda907613a3ed48030a531","head":{"label":"majido:scroll-restoration","ref":"scroll-restoration","sha":"4787a838177c2c8544fda907613a3ed48030a531","user":{"login":"majido","id":944639,"avatar_url":"https://avatars.githubusercontent.com/u/944639?v=3","gravatar_id":"","url":"https://api.github.com/users/majido","html_url":"https://github.com/majido","followers_url":"https://api.github.com/users/majido/followers","following_url":"https://api.github.com/users/majido/following{/other_user}","gists_url":"https://api.github.com/users/majido/gists{/gist_id}","starred_url":"https://api.github.com/users/majido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majido/subscriptions","organizations_url":"https://api.github.com/users/majido/orgs","repos_url":"https://api.github.com/users/majido/repos","events_url":"https://api.github.com/users/majido/events{/privacy}","received_events_url":"https://api.github.com/users/majido/received_events","type":"User","site_admin":false},"repo":{"id":43502849,"name":"html","full_name":"majido/html","owner":{"login":"majido","id":944639,"avatar_url":"https://avatars.githubusercontent.com/u/944639?v=3","gravatar_id":"","url":"https://api.github.com/users/majido","html_url":"https://github.com/majido","followers_url":"https://api.github.com/users/majido/followers","following_url":"https://api.github.com/users/majido/following{/other_user}","gists_url":"https://api.github.com/users/majido/gists{/gist_id}","starred_url":"https://api.github.com/users/majido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majido/subscriptions","organizations_url":"https://api.github.com/users/majido/orgs","repos_url":"https://api.github.com/users/majido/repos","events_url":"https://api.github.com/users/majido/events{/privacy}","received_events_url":"https://api.github.com/users/majido/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/majido/html","description":"HTML Standard","fork":true,"url":"https://api.github.com/repos/majido/html","forks_url":"https://api.github.com/repos/majido/html/forks","keys_url":"https://api.github.com/repos/majido/html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/majido/html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/majido/html/teams","hooks_url":"https://api.github.com/repos/majido/html/hooks","issue_events_url":"https://api.github.com/repos/majido/html/issues/events{/number}","events_url":"https://api.github.com/repos/majido/html/events","assignees_url":"https://api.github.com/repos/majido/html/assignees{/user}","branches_url":"https://api.github.com/repos/majido/html/branches{/branch}","tags_url":"https://api.github.com/repos/majido/html/tags","blobs_url":"https://api.github.com/repos/majido/html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/majido/html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/majido/html/git/refs{/sha}","trees_url":"https://api.github.com/repos/majido/html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/majido/html/statuses/{sha}","languages_url":"https://api.github.com/repos/majido/html/languages","stargazers_url":"https://api.github.com/repos/majido/html/stargazers","contributors_url":"https://api.github.com/repos/majido/html/contributors","subscribers_url":"https://api.github.com/repos/majido/html/subscribers","subscription_url":"https://api.github.com/repos/majido/html/subscription","commits_url":"https://api.github.com/repos/majido/html/commits{/sha}","git_commits_url":"https://api.github.com/repos/majido/html/git/commits{/sha}","comments_url":"https://api.github.com/repos/majido/html/comments{/number}","issue_comment_url":"https://api.github.com/repos/majido/html/issues/comments{/number}","contents_url":"https://api.github.com/repos/majido/html/contents/{+path}","compare_url":"https://api.github.com/repos/majido/html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/majido/html/merges","archive_url":"https://api.github.com/repos/majido/html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/majido/html/downloads","issues_url":"https://api.github.com/repos/majido/html/issues{/number}","pulls_url":"https://api.github.com/repos/majido/html/pulls{/number}","milestones_url":"https://api.github.com/repos/majido/html/milestones{/number}","notifications_url":"https://api.github.com/repos/majido/html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/majido/html/labels{/name}","releases_url":"https://api.github.com/repos/majido/html/releases{/id}","created_at":"2015-10-01T14:58:28Z","updated_at":"2015-10-01T15:02:16Z","pushed_at":"2015-10-22T15:55:53Z","git_url":"git://github.com/majido/html.git","ssh_url":"git@github.com:majido/html.git","clone_url":"https://github.com/majido/html.git","svn_url":"https://github.com/majido/html","homepage":"https://html.spec.whatwg.org/multipage/","size":106613,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"whatwg:master","ref":"master","sha":"7e8a5367d1e0d9c1b7e84d2c86e7821af0ff167a","user":{"login":"whatwg","id":2226336,"avatar_url":"https://avatars.githubusercontent.com/u/2226336?v=3","gravatar_id":"","url":"https://api.github.com/users/whatwg","html_url":"https://github.com/whatwg","followers_url":"https://api.github.com/users/whatwg/followers","following_url":"https://api.github.com/users/whatwg/following{/other_user}","gists_url":"https://api.github.com/users/whatwg/gists{/gist_id}","starred_url":"https://api.github.com/users/whatwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatwg/subscriptions","organizations_url":"https://api.github.com/users/whatwg/orgs","repos_url":"https://api.github.com/users/whatwg/repos","events_url":"https://api.github.com/users/whatwg/events{/privacy}","received_events_url":"https://api.github.com/users/whatwg/received_events","type":"Organization","site_admin":false},"repo":{"id":11969507,"name":"html","full_name":"whatwg/html","owner":{"login":"whatwg","id":2226336,"avatar_url":"https://avatars.githubusercontent.com/u/2226336?v=3","gravatar_id":"","url":"https://api.github.com/users/whatwg","html_url":"https://github.com/whatwg","followers_url":"https://api.github.com/users/whatwg/followers","following_url":"https://api.github.com/users/whatwg/following{/other_user}","gists_url":"https://api.github.com/users/whatwg/gists{/gist_id}","starred_url":"https://api.github.com/users/whatwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatwg/subscriptions","organizations_url":"https://api.github.com/users/whatwg/orgs","repos_url":"https://api.github.com/users/whatwg/repos","events_url":"https://api.github.com/users/whatwg/events{/privacy}","received_events_url":"https://api.github.com/users/whatwg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whatwg/html","description":"HTML Standard","fork":false,"url":"https://api.github.com/repos/whatwg/html","forks_url":"https://api.github.com/repos/whatwg/html/forks","keys_url":"https://api.github.com/repos/whatwg/html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whatwg/html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whatwg/html/teams","hooks_url":"https://api.github.com/repos/whatwg/html/hooks","issue_events_url":"https://api.github.com/repos/whatwg/html/issues/events{/number}","events_url":"https://api.github.com/repos/whatwg/html/events","assignees_url":"https://api.github.com/repos/whatwg/html/assignees{/user}","branches_url":"https://api.github.com/repos/whatwg/html/branches{/branch}","tags_url":"https://api.github.com/repos/whatwg/html/tags","blobs_url":"https://api.github.com/repos/whatwg/html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whatwg/html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whatwg/html/git/refs{/sha}","trees_url":"https://api.github.com/repos/whatwg/html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whatwg/html/statuses/{sha}","languages_url":"https://api.github.com/repos/whatwg/html/languages","stargazers_url":"https://api.github.com/repos/whatwg/html/stargazers","contributors_url":"https://api.github.com/repos/whatwg/html/contributors","subscribers_url":"https://api.github.com/repos/whatwg/html/subscribers","subscription_url":"https://api.github.com/repos/whatwg/html/subscription","commits_url":"https://api.github.com/repos/whatwg/html/commits{/sha}","git_commits_url":"https://api.github.com/repos/whatwg/html/git/commits{/sha}","comments_url":"https://api.github.com/repos/whatwg/html/comments{/number}","issue_comment_url":"https://api.github.com/repos/whatwg/html/issues/comments{/number}","contents_url":"https://api.github.com/repos/whatwg/html/contents/{+path}","compare_url":"https://api.github.com/repos/whatwg/html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whatwg/html/merges","archive_url":"https://api.github.com/repos/whatwg/html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whatwg/html/downloads","issues_url":"https://api.github.com/repos/whatwg/html/issues{/number}","pulls_url":"https://api.github.com/repos/whatwg/html/pulls{/number}","milestones_url":"https://api.github.com/repos/whatwg/html/milestones{/number}","notifications_url":"https://api.github.com/repos/whatwg/html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whatwg/html/labels{/name}","releases_url":"https://api.github.com/repos/whatwg/html/releases{/id}","created_at":"2013-08-08T06:26:07Z","updated_at":"2015-10-21T16:08:30Z","pushed_at":"2015-10-23T13:32:37Z","git_url":"git://github.com/whatwg/html.git","ssh_url":"git@github.com:whatwg/html.git","clone_url":"https://github.com/whatwg/html.git","svn_url":"https://github.com/whatwg/html","homepage":"https://html.spec.whatwg.org/multipage/","size":116650,"stargazers_count":245,"watchers_count":245,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":76,"forks":40,"open_issues":76,"watchers":245,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/whatwg/html/pulls/278"},"html":{"href":"https://github.com/whatwg/html/pull/278"},"issue":{"href":"https://api.github.com/repos/whatwg/html/issues/278"},"comments":{"href":"https://api.github.com/repos/whatwg/html/issues/278/comments"},"review_comments":{"href":"https://api.github.com/repos/whatwg/html/pulls/278/comments"},"review_comment":{"href":"https://api.github.com/repos/whatwg/html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/whatwg/html/pulls/278/commits"},"statuses":{"href":"https://api.github.com/repos/whatwg/html/statuses/4787a838177c2c8544fda907613a3ed48030a531"}}}}