Backed out changeset 0303be04c579 (bug 1312541) for es lint failures
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Wed, 26 Oct 2016 17:04:25 +0200
changeset 346312 48dbaf075fc6a9724903a080f5c5ee4c4b3e38e2
parent 346311 28986ba05618e9a7116f726debb4785cbcaf8655
child 346313 14277a31e124303c85890f363b31f12dab245f72
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1312541
milestone52.0a1
backs out0303be04c579b1ac454d5705ea28c274e7698623
Backed out changeset 0303be04c579 (bug 1312541) for es lint failures
browser/components/originattributes/test/browser/browser.ini
browser/components/originattributes/test/browser/browser_cookieIsolation.js
--- a/browser/components/originattributes/test/browser/browser.ini
+++ b/browser/components/originattributes/test/browser/browser.ini
@@ -25,17 +25,16 @@ support-files =
   test_firstParty_http_redirect.html
   test_firstParty_http_redirect.html^headers^
   test_firstParty_iframe_http_redirect.html
   test_firstParty_postMessage.html
   window.html
   worker_blobify.js
   worker_deblobify.js
 
-[browser_cookieIsolation.js]
 [browser_favicon_firstParty.js]
 [browser_favicon_userContextId.js]
 [browser_firstPartyIsolation.js]
 [browser_localStorageIsolation.js]
 [browser_blobURLIsolation.js]
 [browser_imageCacheIsolation.js]
 [browser_sharedworker.js]
 [browser_httpauth.js]
deleted file mode 100644
--- a/browser/components/originattributes/test/browser/browser_cookieIsolation.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Bug 1312541 - A test case for document.cookie isolation.
- */
-
-const TEST_PAGE = "http://mochi.test:8888/browser/browser/components/" +
-                  "originattributes/test/browser/file_firstPartyBasic.html";
-
-// Use a random key so we don't access it in later tests.
-const key = "key" + Math.random().toString();
-const re = new RegExp(key + "=([0-9\.]+)");
-
-// Define the testing function
-function* doTest(aBrowser) {
-    return yield ContentTask.spawn(aBrowser, {key, re},
-                                   function ({key, re}) {
-    let result = re.exec(content.document.cookie);
-    if (result) {
-      return result[1];
-    } else {
-      // No value is found, so we create one.
-      let value = Math.random().toString();
-      content.document.cookie = key + "=" + value;
-      return value;
-    }
-  });
-}
-
-IsolationTestTools.runTests(TEST_PAGE, doTest);