Bug 1140739 - Don't expect any specific TLS version or cipher suite in browser_net_security-details.js. r=vporof, a=test-only
authorSami Jaktholm <sjakthol@outlook.com>
Wed, 11 Mar 2015 20:13:45 +0100
changeset 247981 1adf44fcb513fd289f513df089ee72c86f498c8b
parent 247980 758a094c8b7e66c67cd2998b30d0f2d89c4d74e4
child 247982 115d3d727f45e001427894ae7bd3f6abe50ef4d3
push id7730
push userkaie@kuix.de
push dateWed, 11 Mar 2015 19:14:10 +0000
treeherdermozilla-aurora@1adf44fcb513 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof, test-only
bugs1140739
milestone38.0a2
Bug 1140739 - Don't expect any specific TLS version or cipher suite in browser_net_security-details.js. r=vporof, a=test-only
browser/devtools/netmonitor/test/browser_net_security-details.js
--- a/browser/devtools/netmonitor/test/browser_net_security-details.js
+++ b/browser/devtools/netmonitor/test/browser_net_security-details.js
@@ -32,18 +32,27 @@ add_task(function* () {
 
   let errorbox = $("#security-error");
   let infobox = $("#security-information");
 
   is(errorbox.hidden, true, "Error box is hidden.");
   is(infobox.hidden, false, "Information box visible.");
 
   // Connection
-  checkLabel("#security-protocol-version-value", "TLSv1");
-  checkLabel("#security-ciphersuite-value", "TLS_RSA_WITH_AES_128_CBC_SHA");
+
+  // The protocol will be TLS but the exact version depends on which protocol
+  // the test server example.com supports.
+  let protocol = $("#security-protocol-version-value").value;
+  ok(protocol.startsWith("TLS"), "The protocol " + protocol + " seems valid.");
+
+  // The cipher suite used by the test server example.com might change at any
+  // moment but all of them should start with "TLS_".
+  // http://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml
+  let suite = $("#security-ciphersuite-value").value;
+  ok(suite.startsWith("TLS_"), "The suite " + suite + " seems valid.");
 
   // Host
   checkLabel("#security-info-host-header", "Host example.com:");
   checkLabel("#security-http-strict-transport-security-value", "Disabled");
   checkLabel("#security-public-key-pinning-value", "Disabled");
 
   // Cert
   checkLabel("#security-cert-subject-cn", "example.com");