{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/24398040","id":24398040,"diff_hunk":"@@ -0,0 +1,30 @@\n+'use strict';\n+\n+marionette('Private Browser Trigger', function() {\n+\n+  var client = marionette.client({\n+    prefs: {\n+      'dom.w3c_touch_events.enabled': 1\n+    },\n+    settings: {\n+      'ftu.manifestURL': null,\n+      'lockscreen.enabled': false\n+    }\n+  });\n+\n+  var search, system;\n+\n+  setup(function() {\n+    search = client.loader.getAppClass('search');\n+    system = client.loader.getAppClass('system');\n+    system.waitForStartup();\n+  });\n+\n+  test('launches private window', function() {\n+    var frame = system.waitForLaunch(search.URL);\n+    client.switchToFrame(frame);\n+\n+    client.helper.waitForElement(\n+      search.Selectors.privateWindow).click();","path":"apps/search/test/marionette/private_browser_trigger_test.js","position":28,"original_position":28,"commit_id":"33df6c9f6a2704abaaad3258457923b7955a7830","original_commit_id":"33df6c9f6a2704abaaad3258457923b7955a7830","user":{"login":"KevinGrandon","id":122602,"avatar_url":"https://avatars.githubusercontent.com/u/122602?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinGrandon","html_url":"https://github.com/KevinGrandon","followers_url":"https://api.github.com/users/KevinGrandon/followers","following_url":"https://api.github.com/users/KevinGrandon/following{/other_user}","gists_url":"https://api.github.com/users/KevinGrandon/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGrandon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGrandon/subscriptions","organizations_url":"https://api.github.com/users/KevinGrandon/orgs","repos_url":"https://api.github.com/users/KevinGrandon/repos","events_url":"https://api.github.com/users/KevinGrandon/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGrandon/received_events","type":"User","site_admin":false},"body":"Doh, nice catch. Totally meant to add that :)","created_at":"2015-02-10T09:14:52Z","updated_at":"2015-02-10T09:14:52Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/28073#discussion_r24398040","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/24398040"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/28073#discussion_r24398040"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073","id":28919039,"html_url":"https://github.com/mozilla-b2g/gaia/pull/28073","diff_url":"https://github.com/mozilla-b2g/gaia/pull/28073.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/28073.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28073","number":28073,"state":"open","locked":false,"title":"Bug 1131023 - Add trigger for private browser","user":{"login":"KevinGrandon","id":122602,"avatar_url":"https://avatars.githubusercontent.com/u/122602?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinGrandon","html_url":"https://github.com/KevinGrandon","followers_url":"https://api.github.com/users/KevinGrandon/followers","following_url":"https://api.github.com/users/KevinGrandon/following{/other_user}","gists_url":"https://api.github.com/users/KevinGrandon/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGrandon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGrandon/subscriptions","organizations_url":"https://api.github.com/users/KevinGrandon/orgs","repos_url":"https://api.github.com/users/KevinGrandon/repos","events_url":"https://api.github.com/users/KevinGrandon/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGrandon/received_events","type":"User","site_admin":false},"body":"https://bugzilla.mozilla.org/show_bug.cgi?id=1131023","created_at":"2015-02-09T13:14:03Z","updated_at":"2015-02-10T09:14:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1fc6ccfc3dbfd5cd0025b31f5c85320889d7b62","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28073/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/33df6c9f6a2704abaaad3258457923b7955a7830","head":{"label":"KevinGrandon:bug_1131023_enter_private_browsing_window","ref":"bug_1131023_enter_private_browsing_window","sha":"33df6c9f6a2704abaaad3258457923b7955a7830","user":{"login":"KevinGrandon","id":122602,"avatar_url":"https://avatars.githubusercontent.com/u/122602?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinGrandon","html_url":"https://github.com/KevinGrandon","followers_url":"https://api.github.com/users/KevinGrandon/followers","following_url":"https://api.github.com/users/KevinGrandon/following{/other_user}","gists_url":"https://api.github.com/users/KevinGrandon/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGrandon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGrandon/subscriptions","organizations_url":"https://api.github.com/users/KevinGrandon/orgs","repos_url":"https://api.github.com/users/KevinGrandon/repos","events_url":"https://api.github.com/users/KevinGrandon/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGrandon/received_events","type":"User","site_admin":false},"repo":{"id":6770930,"name":"gaia","full_name":"KevinGrandon/gaia","owner":{"login":"KevinGrandon","id":122602,"avatar_url":"https://avatars.githubusercontent.com/u/122602?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinGrandon","html_url":"https://github.com/KevinGrandon","followers_url":"https://api.github.com/users/KevinGrandon/followers","following_url":"https://api.github.com/users/KevinGrandon/following{/other_user}","gists_url":"https://api.github.com/users/KevinGrandon/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGrandon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGrandon/subscriptions","organizations_url":"https://api.github.com/users/KevinGrandon/orgs","repos_url":"https://api.github.com/users/KevinGrandon/repos","events_url":"https://api.github.com/users/KevinGrandon/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGrandon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KevinGrandon/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/KevinGrandon/gaia","forks_url":"https://api.github.com/repos/KevinGrandon/gaia/forks","keys_url":"https://api.github.com/repos/KevinGrandon/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KevinGrandon/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KevinGrandon/gaia/teams","hooks_url":"https://api.github.com/repos/KevinGrandon/gaia/hooks","issue_events_url":"https://api.github.com/repos/KevinGrandon/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/KevinGrandon/gaia/events","assignees_url":"https://api.github.com/repos/KevinGrandon/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/KevinGrandon/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/KevinGrandon/gaia/tags","blobs_url":"https://api.github.com/repos/KevinGrandon/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KevinGrandon/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KevinGrandon/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/KevinGrandon/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KevinGrandon/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/KevinGrandon/gaia/languages","stargazers_url":"https://api.github.com/repos/KevinGrandon/gaia/stargazers","contributors_url":"https://api.github.com/repos/KevinGrandon/gaia/contributors","subscribers_url":"https://api.github.com/repos/KevinGrandon/gaia/subscribers","subscription_url":"https://api.github.com/repos/KevinGrandon/gaia/subscription","commits_url":"https://api.github.com/repos/KevinGrandon/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/KevinGrandon/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/KevinGrandon/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/KevinGrandon/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/KevinGrandon/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/KevinGrandon/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KevinGrandon/gaia/merges","archive_url":"https://api.github.com/repos/KevinGrandon/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KevinGrandon/gaia/downloads","issues_url":"https://api.github.com/repos/KevinGrandon/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/KevinGrandon/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/KevinGrandon/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/KevinGrandon/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KevinGrandon/gaia/labels{/name}","releases_url":"https://api.github.com/repos/KevinGrandon/gaia/releases{/id}","created_at":"2012-11-20T02:22:33Z","updated_at":"2015-02-10T08:50:01Z","pushed_at":"2015-02-10T08:50:01Z","git_url":"git://github.com/KevinGrandon/gaia.git","ssh_url":"git@github.com:KevinGrandon/gaia.git","clone_url":"https://github.com/KevinGrandon/gaia.git","svn_url":"https://github.com/KevinGrandon/gaia","homepage":"https://wiki.mozilla.org/B2G","size":893141,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"0cf517083f7eb5fc269e1236edba50534f65e3cd","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-02-10T09:00:47Z","pushed_at":"2015-02-10T09:04:56Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1408027,"stargazers_count":1872,"watchers_count":1872,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2207,"mirror_url":null,"open_issues_count":903,"forks":2207,"open_issues":903,"watchers":1872,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/28073"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28073"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28073/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28073/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/33df6c9f6a2704abaaad3258457923b7955a7830"}}}}