{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/ServiceWorker/pulls/comments/92813540","pull_request_review_id":13335555,"id":92813540,"diff_hunk":"@@ -724,6 +737,71 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe\n </section>\n \n <section>\n+    <h3 id=\"navigation-preload-manager\">{{NavigationPreloadManager}}</h3>\n+\n+    <pre class=\"idl\">\n+      [SecureContext, Exposed=(Window,Worker)]\n+      interface NavigationPreloadManager {\n+        Promise&lt;void&gt; enable();\n+        Promise&lt;void&gt; disable();\n+        Promise&lt;void&gt; setHeaderValue(DOMString value);\n+        Promise&lt;NavigationPreloadState&gt; getState();\n+      };\n+\n+      dictionary NavigationPreloadState {\n+        boolean enabled = false;\n+        ByteString headerValue;\n+      };\n+    </pre>\n+\n+    <section algorithm>\n+      <h4 id=\"navigation-preload-manager-enable\"><dfn>{{NavigationPreloadManager/enable()}}</dfn></h4>\n+\n+      The {{NavigationPreloadManager/enable()}} method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:\n+\n+        1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].\n+        1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an \"{{InvalidStateError}}\" exception, and abort these steps.\n+        1. Set |registration|'s [=navigation preload enabled flag=].\n+        1. [=Resolve=] |promise|.\n+    </section>\n+\n+    <section algorithm>\n+      <h4 id=\"navigation-preload-manager-disable\"><dfn>{{NavigationPreloadManager/disable()}}</dfn></h4>\n+\n+      The {{NavigationPreloadManager/disable()}} method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:\n+\n+        1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].\n+        1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an \"{{InvalidStateError}}\" exception, and abort these steps.\n+        1. Unset |registration|'s [=navigation preload enabled flag=].\n+        1. [=Resolve=] |promise|.\n+    </section>\n+\n+    <section algorithm>\n+      <h4 id=\"navigation-preload-manager-setheadervalue\"><dfn>{{NavigationPreloadManager/setHeaderValue(value)}}</dfn></h4>\n+\n+      The <a method for=\"NavigationPreloadManager\"><code>setHeaderValue(|value|)</code></a> method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:","path":"docs/index.bs","position":80,"original_position":80,"commit_id":"245b62e45dc0cef0d2f30e6fb1fdec9b1fbc7c4b","original_commit_id":"0ac956bdc726a0d48aae616a5a7341520e1e6185","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},"body":"Ah.. That's right. I got it.","created_at":"2016-12-16T13:47:32Z","updated_at":"2016-12-16T13:47:32Z","html_url":"https://github.com/w3c/ServiceWorker/pull/983#discussion_r92813540","pull_request_url":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983","_links":{"self":{"href":"https://api.github.com/repos/w3c/ServiceWorker/pulls/comments/92813540"},"html":{"href":"https://github.com/w3c/ServiceWorker/pull/983#discussion_r92813540"},"pull_request":{"href":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983","id":88109014,"html_url":"https://github.com/w3c/ServiceWorker/pull/983","diff_url":"https://github.com/w3c/ServiceWorker/pull/983.diff","patch_url":"https://github.com/w3c/ServiceWorker/pull/983.patch","issue_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/983","number":983,"state":"open","locked":false,"title":"(WIP) Navigation preload","user":{"login":"jakearchibald","id":93594,"avatar_url":"https://avatars.githubusercontent.com/u/93594?v=3","gravatar_id":"","url":"https://api.github.com/users/jakearchibald","html_url":"https://github.com/jakearchibald","followers_url":"https://api.github.com/users/jakearchibald/followers","following_url":"https://api.github.com/users/jakearchibald/following{/other_user}","gists_url":"https://api.github.com/users/jakearchibald/gists{/gist_id}","starred_url":"https://api.github.com/users/jakearchibald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakearchibald/subscriptions","organizations_url":"https://api.github.com/users/jakearchibald/orgs","repos_url":"https://api.github.com/users/jakearchibald/repos","events_url":"https://api.github.com/users/jakearchibald/events{/privacy}","received_events_url":"https://api.github.com/users/jakearchibald/received_events","type":"User","site_admin":false},"body":"Needs review.\n","created_at":"2016-10-05T16:10:18Z","updated_at":"2016-12-16T13:47:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5314f06ce0e1401693faf493173b9b25c533c71","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983/commits","review_comments_url":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983/comments","review_comment_url":"https://api.github.com/repos/w3c/ServiceWorker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/983/comments","statuses_url":"https://api.github.com/repos/w3c/ServiceWorker/statuses/245b62e45dc0cef0d2f30e6fb1fdec9b1fbc7c4b","head":{"label":"w3c:navigation-preload","ref":"navigation-preload","sha":"245b62e45dc0cef0d2f30e6fb1fdec9b1fbc7c4b","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":8071542,"name":"ServiceWorker","full_name":"w3c/ServiceWorker","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/ServiceWorker","description":"The Service Worker Specification https://w3c.github.io/ServiceWorker/","fork":false,"url":"https://api.github.com/repos/w3c/ServiceWorker","forks_url":"https://api.github.com/repos/w3c/ServiceWorker/forks","keys_url":"https://api.github.com/repos/w3c/ServiceWorker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/ServiceWorker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/ServiceWorker/teams","hooks_url":"https://api.github.com/repos/w3c/ServiceWorker/hooks","issue_events_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/ServiceWorker/events","assignees_url":"https://api.github.com/repos/w3c/ServiceWorker/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/ServiceWorker/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/ServiceWorker/tags","blobs_url":"https://api.github.com/repos/w3c/ServiceWorker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/ServiceWorker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/ServiceWorker/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/ServiceWorker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/ServiceWorker/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/ServiceWorker/languages","stargazers_url":"https://api.github.com/repos/w3c/ServiceWorker/stargazers","contributors_url":"https://api.github.com/repos/w3c/ServiceWorker/contributors","subscribers_url":"https://api.github.com/repos/w3c/ServiceWorker/subscribers","subscription_url":"https://api.github.com/repos/w3c/ServiceWorker/subscription","commits_url":"https://api.github.com/repos/w3c/ServiceWorker/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/ServiceWorker/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/ServiceWorker/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/ServiceWorker/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/ServiceWorker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/ServiceWorker/merges","archive_url":"https://api.github.com/repos/w3c/ServiceWorker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/ServiceWorker/downloads","issues_url":"https://api.github.com/repos/w3c/ServiceWorker/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/ServiceWorker/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/ServiceWorker/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/ServiceWorker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/ServiceWorker/labels{/name}","releases_url":"https://api.github.com/repos/w3c/ServiceWorker/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/ServiceWorker/deployments","created_at":"2013-02-07T11:23:04Z","updated_at":"2016-12-16T05:03:10Z","pushed_at":"2016-12-16T13:46:17Z","git_url":"git://github.com/w3c/ServiceWorker.git","ssh_url":"git@github.com:w3c/ServiceWorker.git","clone_url":"https://github.com/w3c/ServiceWorker.git","svn_url":"https://github.com/w3c/ServiceWorker","homepage":"","size":6998,"stargazers_count":2103,"watchers_count":2103,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":179,"mirror_url":null,"open_issues_count":118,"forks":179,"open_issues":118,"watchers":2103,"default_branch":"master"}},"base":{"label":"w3c:master","ref":"master","sha":"d84b93ec97c848ae633116c5991702b7bb2851a4","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":8071542,"name":"ServiceWorker","full_name":"w3c/ServiceWorker","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/ServiceWorker","description":"The Service Worker Specification https://w3c.github.io/ServiceWorker/","fork":false,"url":"https://api.github.com/repos/w3c/ServiceWorker","forks_url":"https://api.github.com/repos/w3c/ServiceWorker/forks","keys_url":"https://api.github.com/repos/w3c/ServiceWorker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/ServiceWorker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/ServiceWorker/teams","hooks_url":"https://api.github.com/repos/w3c/ServiceWorker/hooks","issue_events_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/ServiceWorker/events","assignees_url":"https://api.github.com/repos/w3c/ServiceWorker/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/ServiceWorker/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/ServiceWorker/tags","blobs_url":"https://api.github.com/repos/w3c/ServiceWorker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/ServiceWorker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/ServiceWorker/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/ServiceWorker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/ServiceWorker/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/ServiceWorker/languages","stargazers_url":"https://api.github.com/repos/w3c/ServiceWorker/stargazers","contributors_url":"https://api.github.com/repos/w3c/ServiceWorker/contributors","subscribers_url":"https://api.github.com/repos/w3c/ServiceWorker/subscribers","subscription_url":"https://api.github.com/repos/w3c/ServiceWorker/subscription","commits_url":"https://api.github.com/repos/w3c/ServiceWorker/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/ServiceWorker/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/ServiceWorker/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/ServiceWorker/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/ServiceWorker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/ServiceWorker/merges","archive_url":"https://api.github.com/repos/w3c/ServiceWorker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/ServiceWorker/downloads","issues_url":"https://api.github.com/repos/w3c/ServiceWorker/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/ServiceWorker/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/ServiceWorker/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/ServiceWorker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/ServiceWorker/labels{/name}","releases_url":"https://api.github.com/repos/w3c/ServiceWorker/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/ServiceWorker/deployments","created_at":"2013-02-07T11:23:04Z","updated_at":"2016-12-16T05:03:10Z","pushed_at":"2016-12-16T13:46:17Z","git_url":"git://github.com/w3c/ServiceWorker.git","ssh_url":"git@github.com:w3c/ServiceWorker.git","clone_url":"https://github.com/w3c/ServiceWorker.git","svn_url":"https://github.com/w3c/ServiceWorker","homepage":"","size":6998,"stargazers_count":2103,"watchers_count":2103,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":179,"mirror_url":null,"open_issues_count":118,"forks":179,"open_issues":118,"watchers":2103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983"},"html":{"href":"https://github.com/w3c/ServiceWorker/pull/983"},"issue":{"href":"https://api.github.com/repos/w3c/ServiceWorker/issues/983"},"comments":{"href":"https://api.github.com/repos/w3c/ServiceWorker/issues/983/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/ServiceWorker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w3c/ServiceWorker/pulls/983/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/ServiceWorker/statuses/245b62e45dc0cef0d2f30e6fb1fdec9b1fbc7c4b"}}}}
{"actor":{"display_login":"jungkees"}}