{"action":"created","comment":{"url":"https://api.github.com/repos/servo/servo/pulls/comments/58734637","id":58734637,"diff_hunk":"@@ -146,6 +146,8 @@ struct InProgressLoad {\n     clip_rect: Option<Rect<f32>>,\n     /// Window is frozen (navigated away while loading for example).\n     is_frozen: bool,\n+    /// Window is not visible.\n+    is_hidden: bool,","path":"components/script/script_thread.rs","position":5,"original_position":5,"commit_id":"ac228c88dd1fd26c034689690e359b9652c34a9f","original_commit_id":"ac228c88dd1fd26c034689690e359b9652c34a9f","user":{"login":"paulrouget","id":373579,"avatar_url":"https://avatars.githubusercontent.com/u/373579?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrouget","html_url":"https://github.com/paulrouget","followers_url":"https://api.github.com/users/paulrouget/followers","following_url":"https://api.github.com/users/paulrouget/following{/other_user}","gists_url":"https://api.github.com/users/paulrouget/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrouget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrouget/subscriptions","organizations_url":"https://api.github.com/users/paulrouget/orgs","repos_url":"https://api.github.com/users/paulrouget/repos","events_url":"https://api.github.com/users/paulrouget/events{/privacy}","received_events_url":"https://api.github.com/users/paulrouget/received_events","type":"User","site_admin":false},"body":"Nit. Maybe you want to name that `is_visible`, like the other properties added to pipeline, pipeline_details and iframe .","created_at":"2016-04-06T16:13:22Z","updated_at":"2016-04-06T16:13:22Z","html_url":"https://github.com/servo/servo/pull/10225#discussion_r58734637","pull_request_url":"https://api.github.com/repos/servo/servo/pulls/10225","_links":{"self":{"href":"https://api.github.com/repos/servo/servo/pulls/comments/58734637"},"html":{"href":"https://github.com/servo/servo/pull/10225#discussion_r58734637"},"pull_request":{"href":"https://api.github.com/repos/servo/servo/pulls/10225"}}},"pull_request":{"url":"https://api.github.com/repos/servo/servo/pulls/10225","id":64273098,"html_url":"https://github.com/servo/servo/pull/10225","diff_url":"https://github.com/servo/servo/pull/10225.diff","patch_url":"https://github.com/servo/servo/pull/10225.patch","issue_url":"https://api.github.com/repos/servo/servo/issues/10225","number":10225,"state":"open","locked":false,"title":"Implement non-visible pipeline and iframe visibility methods","user":{"login":"jmr0","id":5208099,"avatar_url":"https://avatars.githubusercontent.com/u/5208099?v=3","gravatar_id":"","url":"https://api.github.com/users/jmr0","html_url":"https://github.com/jmr0","followers_url":"https://api.github.com/users/jmr0/followers","following_url":"https://api.github.com/users/jmr0/following{/other_user}","gists_url":"https://api.github.com/users/jmr0/gists{/gist_id}","starred_url":"https://api.github.com/users/jmr0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmr0/subscriptions","organizations_url":"https://api.github.com/users/jmr0/orgs","repos_url":"https://api.github.com/users/jmr0/repos","events_url":"https://api.github.com/users/jmr0/events{/privacy}","received_events_url":"https://api.github.com/users/jmr0/received_events","type":"User","site_admin":false},"body":"This addresses #9566 and a good part of #9751, specifically:\r\n\r\n* Pipeline has a notion of visibility\r\n* IFrame setVisible/getVisible interface with IFrame's pipeline visibility\r\n* IFrame mozbrowservisibilitychange responds to changes in visibility\r\n* Pipeline visibility is used to limit animations (requestAnimationFrame does not tick animations when hidden) and to increase timer intervals (currently set to a minimum of 1 second while hidden)\r\n\r\nAbsent for now are any changes to the Document API and general implementation of the Page Visibility API, since the more interesting parts require knowledge of whether the user agent is minimized, OS screen locked, etc.\r\n\r\ncc @paulrouget @jdm\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/servo/servo/10225)\n<!-- Reviewable:end -->\n","created_at":"2016-03-27T19:19:59Z","updated_at":"2016-04-06T16:13:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"462059c6392f5550888c8875d1e8b178319c6454","assignee":{"login":"jdm","id":27658,"avatar_url":"https://avatars.githubusercontent.com/u/27658?v=3","gravatar_id":"","url":"https://api.github.com/users/jdm","html_url":"https://github.com/jdm","followers_url":"https://api.github.com/users/jdm/followers","following_url":"https://api.github.com/users/jdm/following{/other_user}","gists_url":"https://api.github.com/users/jdm/gists{/gist_id}","starred_url":"https://api.github.com/users/jdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdm/subscriptions","organizations_url":"https://api.github.com/users/jdm/orgs","repos_url":"https://api.github.com/users/jdm/repos","events_url":"https://api.github.com/users/jdm/events{/privacy}","received_events_url":"https://api.github.com/users/jdm/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/servo/servo/pulls/10225/commits","review_comments_url":"https://api.github.com/repos/servo/servo/pulls/10225/comments","review_comment_url":"https://api.github.com/repos/servo/servo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/servo/servo/issues/10225/comments","statuses_url":"https://api.github.com/repos/servo/servo/statuses/ac228c88dd1fd26c034689690e359b9652c34a9f","head":{"label":"jmr0:visibility_api","ref":"visibility_api","sha":"ac228c88dd1fd26c034689690e359b9652c34a9f","user":{"login":"jmr0","id":5208099,"avatar_url":"https://avatars.githubusercontent.com/u/5208099?v=3","gravatar_id":"","url":"https://api.github.com/users/jmr0","html_url":"https://github.com/jmr0","followers_url":"https://api.github.com/users/jmr0/followers","following_url":"https://api.github.com/users/jmr0/following{/other_user}","gists_url":"https://api.github.com/users/jmr0/gists{/gist_id}","starred_url":"https://api.github.com/users/jmr0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmr0/subscriptions","organizations_url":"https://api.github.com/users/jmr0/orgs","repos_url":"https://api.github.com/users/jmr0/repos","events_url":"https://api.github.com/users/jmr0/events{/privacy}","received_events_url":"https://api.github.com/users/jmr0/received_events","type":"User","site_admin":false},"repo":{"id":46544475,"name":"servo","full_name":"jmr0/servo","owner":{"login":"jmr0","id":5208099,"avatar_url":"https://avatars.githubusercontent.com/u/5208099?v=3","gravatar_id":"","url":"https://api.github.com/users/jmr0","html_url":"https://github.com/jmr0","followers_url":"https://api.github.com/users/jmr0/followers","following_url":"https://api.github.com/users/jmr0/following{/other_user}","gists_url":"https://api.github.com/users/jmr0/gists{/gist_id}","starred_url":"https://api.github.com/users/jmr0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmr0/subscriptions","organizations_url":"https://api.github.com/users/jmr0/orgs","repos_url":"https://api.github.com/users/jmr0/repos","events_url":"https://api.github.com/users/jmr0/events{/privacy}","received_events_url":"https://api.github.com/users/jmr0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmr0/servo","description":"The Servo Browser Engine","fork":true,"url":"https://api.github.com/repos/jmr0/servo","forks_url":"https://api.github.com/repos/jmr0/servo/forks","keys_url":"https://api.github.com/repos/jmr0/servo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmr0/servo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmr0/servo/teams","hooks_url":"https://api.github.com/repos/jmr0/servo/hooks","issue_events_url":"https://api.github.com/repos/jmr0/servo/issues/events{/number}","events_url":"https://api.github.com/repos/jmr0/servo/events","assignees_url":"https://api.github.com/repos/jmr0/servo/assignees{/user}","branches_url":"https://api.github.com/repos/jmr0/servo/branches{/branch}","tags_url":"https://api.github.com/repos/jmr0/servo/tags","blobs_url":"https://api.github.com/repos/jmr0/servo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmr0/servo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmr0/servo/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmr0/servo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmr0/servo/statuses/{sha}","languages_url":"https://api.github.com/repos/jmr0/servo/languages","stargazers_url":"https://api.github.com/repos/jmr0/servo/stargazers","contributors_url":"https://api.github.com/repos/jmr0/servo/contributors","subscribers_url":"https://api.github.com/repos/jmr0/servo/subscribers","subscription_url":"https://api.github.com/repos/jmr0/servo/subscription","commits_url":"https://api.github.com/repos/jmr0/servo/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmr0/servo/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmr0/servo/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmr0/servo/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmr0/servo/contents/{+path}","compare_url":"https://api.github.com/repos/jmr0/servo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmr0/servo/merges","archive_url":"https://api.github.com/repos/jmr0/servo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmr0/servo/downloads","issues_url":"https://api.github.com/repos/jmr0/servo/issues{/number}","pulls_url":"https://api.github.com/repos/jmr0/servo/pulls{/number}","milestones_url":"https://api.github.com/repos/jmr0/servo/milestones{/number}","notifications_url":"https://api.github.com/repos/jmr0/servo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmr0/servo/labels{/name}","releases_url":"https://api.github.com/repos/jmr0/servo/releases{/id}","deployments_url":"https://api.github.com/repos/jmr0/servo/deployments","created_at":"2015-11-20T06:41:08Z","updated_at":"2016-01-30T01:48:49Z","pushed_at":"2016-04-06T05:41:03Z","git_url":"git://github.com/jmr0/servo.git","ssh_url":"git@github.com:jmr0/servo.git","clone_url":"https://github.com/jmr0/servo.git","svn_url":"https://github.com/jmr0/servo","homepage":"http://servo.org/","size":181854,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"servo:master","ref":"master","sha":"0d0e08638da02922353fb165c4d4f3aff59c2ab0","user":{"login":"servo","id":2566135,"avatar_url":"https://avatars.githubusercontent.com/u/2566135?v=3","gravatar_id":"","url":"https://api.github.com/users/servo","html_url":"https://github.com/servo","followers_url":"https://api.github.com/users/servo/followers","following_url":"https://api.github.com/users/servo/following{/other_user}","gists_url":"https://api.github.com/users/servo/gists{/gist_id}","starred_url":"https://api.github.com/users/servo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servo/subscriptions","organizations_url":"https://api.github.com/users/servo/orgs","repos_url":"https://api.github.com/users/servo/repos","events_url":"https://api.github.com/users/servo/events{/privacy}","received_events_url":"https://api.github.com/users/servo/received_events","type":"Organization","site_admin":false},"repo":{"id":3390243,"name":"servo","full_name":"servo/servo","owner":{"login":"servo","id":2566135,"avatar_url":"https://avatars.githubusercontent.com/u/2566135?v=3","gravatar_id":"","url":"https://api.github.com/users/servo","html_url":"https://github.com/servo","followers_url":"https://api.github.com/users/servo/followers","following_url":"https://api.github.com/users/servo/following{/other_user}","gists_url":"https://api.github.com/users/servo/gists{/gist_id}","starred_url":"https://api.github.com/users/servo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servo/subscriptions","organizations_url":"https://api.github.com/users/servo/orgs","repos_url":"https://api.github.com/users/servo/repos","events_url":"https://api.github.com/users/servo/events{/privacy}","received_events_url":"https://api.github.com/users/servo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/servo/servo","description":"The Servo Browser Engine","fork":false,"url":"https://api.github.com/repos/servo/servo","forks_url":"https://api.github.com/repos/servo/servo/forks","keys_url":"https://api.github.com/repos/servo/servo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/servo/servo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/servo/servo/teams","hooks_url":"https://api.github.com/repos/servo/servo/hooks","issue_events_url":"https://api.github.com/repos/servo/servo/issues/events{/number}","events_url":"https://api.github.com/repos/servo/servo/events","assignees_url":"https://api.github.com/repos/servo/servo/assignees{/user}","branches_url":"https://api.github.com/repos/servo/servo/branches{/branch}","tags_url":"https://api.github.com/repos/servo/servo/tags","blobs_url":"https://api.github.com/repos/servo/servo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/servo/servo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/servo/servo/git/refs{/sha}","trees_url":"https://api.github.com/repos/servo/servo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/servo/servo/statuses/{sha}","languages_url":"https://api.github.com/repos/servo/servo/languages","stargazers_url":"https://api.github.com/repos/servo/servo/stargazers","contributors_url":"https://api.github.com/repos/servo/servo/contributors","subscribers_url":"https://api.github.com/repos/servo/servo/subscribers","subscription_url":"https://api.github.com/repos/servo/servo/subscription","commits_url":"https://api.github.com/repos/servo/servo/commits{/sha}","git_commits_url":"https://api.github.com/repos/servo/servo/git/commits{/sha}","comments_url":"https://api.github.com/repos/servo/servo/comments{/number}","issue_comment_url":"https://api.github.com/repos/servo/servo/issues/comments{/number}","contents_url":"https://api.github.com/repos/servo/servo/contents/{+path}","compare_url":"https://api.github.com/repos/servo/servo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/servo/servo/merges","archive_url":"https://api.github.com/repos/servo/servo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/servo/servo/downloads","issues_url":"https://api.github.com/repos/servo/servo/issues{/number}","pulls_url":"https://api.github.com/repos/servo/servo/pulls{/number}","milestones_url":"https://api.github.com/repos/servo/servo/milestones{/number}","notifications_url":"https://api.github.com/repos/servo/servo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/servo/servo/labels{/name}","releases_url":"https://api.github.com/repos/servo/servo/releases{/id}","deployments_url":"https://api.github.com/repos/servo/servo/deployments","created_at":"2012-02-08T19:07:25Z","updated_at":"2016-04-06T11:47:31Z","pushed_at":"2016-04-06T15:43:16Z","git_url":"git://github.com/servo/servo.git","ssh_url":"git@github.com:servo/servo.git","clone_url":"https://github.com/servo/servo.git","svn_url":"https://github.com/servo/servo","homepage":"https://servo.org/","size":214417,"stargazers_count":6441,"watchers_count":6441,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1055,"mirror_url":null,"open_issues_count":1424,"forks":1055,"open_issues":1424,"watchers":6441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/servo/servo/pulls/10225"},"html":{"href":"https://github.com/servo/servo/pull/10225"},"issue":{"href":"https://api.github.com/repos/servo/servo/issues/10225"},"comments":{"href":"https://api.github.com/repos/servo/servo/issues/10225/comments"},"review_comments":{"href":"https://api.github.com/repos/servo/servo/pulls/10225/comments"},"review_comment":{"href":"https://api.github.com/repos/servo/servo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/servo/servo/pulls/10225/commits"},"statuses":{"href":"https://api.github.com/repos/servo/servo/statuses/ac228c88dd1fd26c034689690e359b9652c34a9f"}}}}