Bug 1140739 - Don't expect any specific TLS version or cipher suite in browser_net_security-details.js. r=vporof
authorSami Jaktholm <sjakthol@outlook.com>
Sat, 07 Mar 2015 22:40:28 +0200
changeset 232723 13e4ad55d827574e51c191ea6b9b2024b5884fda
parent 232722 5e569b29f33ba7cb9a530f19ca719e4aec9c77ec
child 232724 c32436f0947e103437e9aa5e01e3accd5b17a2b6
push id28391
push userkwierso@gmail.com
push dateTue, 10 Mar 2015 22:13:38 +0000
treeherdermozilla-central@6119cce9ce80 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof
bugs1140739
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1140739 - Don't expect any specific TLS version or cipher suite in browser_net_security-details.js. r=vporof
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.2");
-  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");