Bug 1154878 followup. Fix a test that expects to see navigator.taintEnabled in workers so we can reopen the CLOSED TREE.
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 15 Apr 2015 17:37:58 -0400
changeset 258330 a54ea61e6fc4d30494497e34aacae735cf3b8dcc
parent 258329 42ed856b37d93aedc448585c50fc89dcb063be10
child 258331 a25ac563a96fbefcfb43c120c3307f4366d0a67a
push id8007
push userraliiev@mozilla.com
push dateMon, 11 May 2015 19:23:16 +0000
treeherdermozilla-aurora@e2ce1aac996e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1154878
milestone40.0a1
Bug 1154878 followup. Fix a test that expects to see navigator.taintEnabled in workers so we can reopen the CLOSED TREE.
dom/workers/test/navigator_worker.js
dom/workers/test/test_navigator.html
--- a/dom/workers/test/navigator_worker.js
+++ b/dom/workers/test/navigator_worker.js
@@ -6,17 +6,16 @@
 // IMPORTANT: Do not change the list below without review from a DOM peer!
 var supportedProps = [
   "appCodeName",
   "appName",
   "appVersion",
   { name: "getDataStores", b2g: true },
   "platform",
   "product",
-  "taintEnabled",
   "userAgent",
   "onLine",
   "language",
   "languages",
 ];
 
 self.onmessage = function(event) {
   if (!event || !event.data) {
@@ -61,19 +60,17 @@ function startTest(isB2G) {
     }
 
     if (typeof navigator[prop] == "undefined") {
       throw "Navigator has no '" + prop + "' property!";
     }
 
     obj = { name:  prop };
 
-    if (prop === "taintEnabled") {
-      obj.value = navigator[prop]();
-    } else if (prop === "getDataStores") {
+    if (prop === "getDataStores") {
       obj.value = typeof navigator[prop];
     } else {
       obj.value = navigator[prop];
     }
 
     postMessage(JSON.stringify(obj));
   }
 
--- a/dom/workers/test/test_navigator.html
+++ b/dom/workers/test/test_navigator.html
@@ -30,21 +30,16 @@ Tests of DOM Worker Navigator
       return;
     }
 
     if (typeof navigator[args.name] == "undefined") {
       ok(false, "Navigator has no '" + args.name + "' property!");
       return;
     }
 
-    if (args.name === "taintEnabled") {
-      is(navigator[args.name](), args.value, args.name + "() returns false.");
-      return;
-    }
-
     if (args.name === "getDataStores") {
       var type = typeof navigator[args.name];
       is(type, args.value, "getDataStores() exists and it's a function.");
       return;
     }
 
     if (args.name === "languages") {
       is(navigator.languages.toString(), args.value.toString(), "languages matches");