{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/html/issues/1776","repository_url":"https://api.github.com/repos/whatwg/html","labels_url":"https://api.github.com/repos/whatwg/html/issues/1776/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/html/issues/1776/comments","events_url":"https://api.github.com/repos/whatwg/html/issues/1776/events","html_url":"https://github.com/whatwg/html/pull/1776","id":176622348,"number":1776,"title":"Improve navigate for service worker hooks","user":{"login":"jungkees","id":1331169,"avatar_url":"https://avatars.githubusercontent.com/u/1331169?v=3","gravatar_id":"","url":"https://api.github.com/users/jungkees","html_url":"https://github.com/jungkees","followers_url":"https://api.github.com/users/jungkees/followers","following_url":"https://api.github.com/users/jungkees/following{/other_user}","gists_url":"https://api.github.com/users/jungkees/gists{/gist_id}","starred_url":"https://api.github.com/users/jungkees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungkees/subscriptions","organizations_url":"https://api.github.com/users/jungkees/orgs","repos_url":"https://api.github.com/users/jungkees/repos","events_url":"https://api.github.com/users/jungkees/events{/privacy}","received_events_url":"https://api.github.com/users/jungkees/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/whatwg/html/labels/topic:%20navigation","name":"topic: navigation","color":"009800"},{"url":"https://api.github.com/repos/whatwg/html/labels/topic:%20workers","name":"topic: workers","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"assignees":[{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":21,"created_at":"2016-09-13T12:03:29Z","updated_at":"2016-10-24T07:43:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/whatwg/html/pulls/1776","html_url":"https://github.com/whatwg/html/pull/1776","diff_url":"https://github.com/whatwg/html/pull/1776.diff","patch_url":"https://github.com/whatwg/html/pull/1776.patch"},"body":"Improve navigate for service worker hooks\r\n    \r\nBefore this patch, we didn't have a concept that holds reserved\r\nclient's information referenced from a service worker during a\r\nnavigation (more precisely before the actual global object and its\r\nrelevant environment settings object for the resulting resource is\r\ncreated).\r\n\r\nThis patch defines an \"environment\" concept (a supertype object of an\r\nenvironment settings object) that has its id, creation URL and target\r\nbrowsing context such that service workers' FetchEvent hanlder can\r\nreference this client information before the corresponding environmet\r\nsetings object is actually created.\r\n\r\nThe changes include:\r\n - Create an environment (a reserved client) during a navigation\r\n - Set request's reserved client id such that fetch (and Handle Fetch)\r\n can use it\r\n - Set request's target client id such that fetch (and Handle Fetch)\r\n can use it\r\n - Add Window object's active worker internal slot\r\n - Add WorkerGlobalObject's active worker internal slot\r\n - Add \"match service worker registration\" logic to attach controller\r\n\r\nRelated issue: https://github.com/w3c/ServiceWorker/issues/870\r\nCall flow: https://github.com/w3c/ServiceWorker/issues/870#issuecomment-241341776\r\nExpected behavior: https://github.com/w3c/ServiceWorker/issues/870#issuecomment-245559217\r\nRelated changes:\r\n - SW (WIP): https://github.com/w3c/ServiceWorker/commit/70baa6bac49d18b3a75364202ae56e98fe0a64a1\r\n - Fetch: https://github.com/whatwg/fetch/pull/383"},"comment":{"url":"https://api.github.com/repos/whatwg/html/issues/comments/255669854","html_url":"https://github.com/whatwg/html/pull/1776#issuecomment-255669854","issue_url":"https://api.github.com/repos/whatwg/html/issues/1776","id":255669854,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T07:43:45Z","updated_at":"2016-10-24T07:43:45Z","body":"I'm going to merge this now and then work with @jungkees today/tomorrow to get the corresponding change to Fetch landed as soon as possible. Either way there'll be some broken URLs."}}
{"actor":{"display_login":"annevk"}}