{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments/25168098","id":25168098,"diff_hunk":"@@ -0,0 +1,55 @@\n+# This Source Code Form is subject to the terms of the Mozilla Public\n+# License, v. 2.0. If a copy of the MPL was not distributed with this\n+# file, You can obtain one at http://mozilla.org/MPL/2.0/.\n+\n+import time\n+\n+from marionette import By\n+from marionette.errors import MarionetteException\n+\n+from firefox_ui_harness.testcase import FirefoxTestCase\n+\n+\n+class TestSSLDisabledErrorPage(FirefoxTestCase):\n+\n+    def setUp(self):\n+        FirefoxTestCase.setUp(self)\n+\n+        self.url = 'https://tlsv1-0.mozqa.com'\n+\n+        tabbar = self.browser.tabbar\n+        tabbar.close_all_tabs([tabbar.tabs[0]])\n+\n+        # Disable SSL 3.0, TLS 1.0 and TLS 1.1 for secure connections\n+        # by forcing the use of TLS 1.2\n+        # see: http://kb.mozillazine.org/Security.tls.version.*#Possible_values_and_their_effects\n+        self.prefs.set_pref('security.tls.version.min', 3)\n+        self.prefs.set_pref('security.tls.version.max', 3)\n+\n+        self.marionette.set_context('content')\n+\n+    def tearDown(self):\n+        self.prefs.restore_all_prefs()\n+        FirefoxTestCase.tearDown(self)\n+\n+    def test_ssl_disabled_error_page(self):\n+        # Open the test page\n+        self.assertRaises(MarionetteException, self.marionette.navigate, self.url)\n+\n+        # Wait for the DOM to receive events\n+        time.sleep(1)\n+\n+        # Verify \"Secure Connection Failed\" error page title\n+        title = self.marionette.find_element(By.ID, 'errorTitleText')\n+\n+        nss_failure2title = self.browser.get_entity('oldSecurityProtocol.title')\n+        self.assertEquals(title.get_attribute('textContent'), nss_failure2title)\n+\n+        # Verify \"Try Again\" button appears\n+        self.assertIsNotNone(self.marionette.find_element(By.ID, 'errorTryAgain'))\n+\n+        # Verify the error message is correct\n+        text = self.marionette.find_element(By.ID, 'errorShortDescText')\n+        errorcode = self.marionette.find_element(By.ID, 'errorcode')\n+        self.assertEquals(errorcode.get_attribute('textContent'), 'ssl_error_unsupported_version')","path":"firefox_ui_tests/remote/security/test_ssl_disabled_error_page.py","position":54,"original_position":54,"commit_id":"2c3925445a4ba08fb3d401def696611de12b79bf","original_commit_id":"2c3925445a4ba08fb3d401def696611de12b79bf","user":{"login":"whimboo","id":129603,"avatar_url":"https://avatars.githubusercontent.com/u/129603?v=3","gravatar_id":"","url":"https://api.github.com/users/whimboo","html_url":"https://github.com/whimboo","followers_url":"https://api.github.com/users/whimboo/followers","following_url":"https://api.github.com/users/whimboo/following{/other_user}","gists_url":"https://api.github.com/users/whimboo/gists{/gist_id}","starred_url":"https://api.github.com/users/whimboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whimboo/subscriptions","organizations_url":"https://api.github.com/users/whimboo/orgs","repos_url":"https://api.github.com/users/whimboo/repos","events_url":"https://api.github.com/users/whimboo/events{/privacy}","received_events_url":"https://api.github.com/users/whimboo/received_events","type":"User","site_admin":false},"body":"The `errorcode` DOM node is no longer available. Please update this part too.","created_at":"2015-02-23T14:42:23Z","updated_at":"2015-02-23T14:42:23Z","html_url":"https://github.com/mozilla/firefox-ui-tests/pull/100#discussion_r25168098","pull_request_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments/25168098"},"html":{"href":"https://github.com/mozilla/firefox-ui-tests/pull/100#discussion_r25168098"},"pull_request":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100","id":29747392,"html_url":"https://github.com/mozilla/firefox-ui-tests/pull/100","diff_url":"https://github.com/mozilla/firefox-ui-tests/pull/100.diff","patch_url":"https://github.com/mozilla/firefox-ui-tests/pull/100.patch","issue_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/100","number":100,"state":"open","locked":false,"title":"Bug 1132687 - Convert Mozmill testSSLDisabledErrorPage","user":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"body":"https://bugzilla.mozilla.org/show_bug.cgi?id=1132687\r\n\r\nI think that this first commit may be pretty close, but it's certainly WIP, as the expected error page appears to fail to load on my system, while the mozmill version of the test runs fine. I'm curious to see what Travis discovers. ","created_at":"2015-02-21T02:44:49Z","updated_at":"2015-02-23T14:42:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dfa80b20464ca162226810c4ca72a50bb31d257","assignee":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100/commits","review_comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100/comments","review_comment_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/100/comments","statuses_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/2c3925445a4ba08fb3d401def696611de12b79bf","head":{"label":"galgeek:sslDisabled","ref":"sslDisabled","sha":"2c3925445a4ba08fb3d401def696611de12b79bf","user":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"repo":{"id":29157462,"name":"firefox-ui-tests","full_name":"galgeek/firefox-ui-tests","owner":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/galgeek/firefox-ui-tests","description":"","fork":true,"url":"https://api.github.com/repos/galgeek/firefox-ui-tests","forks_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/forks","keys_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/teams","hooks_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/hooks","issue_events_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/issues/events{/number}","events_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/events","assignees_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/assignees{/user}","branches_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/branches{/branch}","tags_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/tags","blobs_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/languages","stargazers_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/stargazers","contributors_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/contributors","subscribers_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/subscribers","subscription_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/subscription","commits_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/contents/{+path}","compare_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/merges","archive_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/downloads","issues_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/issues{/number}","pulls_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/labels{/name}","releases_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/releases{/id}","created_at":"2015-01-12T21:18:46Z","updated_at":"2015-02-20T22:41:34Z","pushed_at":"2015-02-21T22:47:27Z","git_url":"git://github.com/galgeek/firefox-ui-tests.git","ssh_url":"git@github.com:galgeek/firefox-ui-tests.git","clone_url":"https://github.com/galgeek/firefox-ui-tests.git","svn_url":"https://github.com/galgeek/firefox-ui-tests","homepage":null,"size":1201,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"ca5a68623a66176e4da9b17fc3b5cf5d8997b2d5","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":25004372,"name":"firefox-ui-tests","full_name":"mozilla/firefox-ui-tests","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/firefox-ui-tests","description":"","fork":false,"url":"https://api.github.com/repos/mozilla/firefox-ui-tests","forks_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/forks","keys_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/teams","hooks_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/hooks","issue_events_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/events","assignees_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/tags","blobs_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/languages","stargazers_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/stargazers","contributors_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/contributors","subscribers_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/subscribers","subscription_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/subscription","commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/merges","archive_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/downloads","issues_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/releases{/id}","created_at":"2014-10-09T19:09:05Z","updated_at":"2015-02-22T10:08:10Z","pushed_at":"2015-02-20T22:35:21Z","git_url":"git://github.com/mozilla/firefox-ui-tests.git","ssh_url":"git@github.com:mozilla/firefox-ui-tests.git","clone_url":"https://github.com/mozilla/firefox-ui-tests.git","svn_url":"https://github.com/mozilla/firefox-ui-tests","homepage":null,"size":1872,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":20,"forks":17,"open_issues":20,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100"},"html":{"href":"https://github.com/mozilla/firefox-ui-tests/pull/100"},"issue":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/100"},"comments":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/2c3925445a4ba08fb3d401def696611de12b79bf"}}}}