Backed out changeset 3a3c05f46c5e (bug 1093611)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Tue, 25 Nov 2014 11:01:23 +0100
changeset 241774 c8b3bfec6cf431a8efc08fa0fa6779ae2d43b844
parent 241773 3a3c05f46c5e9dc3ee529e701f212c785378b9fb
child 241775 f8188964544599190714eea76aadd383ee532bba
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1093611
milestone36.0a1
backs out3a3c05f46c5e9dc3ee529e701f212c785378b9fb
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
Backed out changeset 3a3c05f46c5e (bug 1093611)
docshell/test/navigation/navigate.html
dom/base/test/test_url.html
dom/html/test/mochitest.ini
dom/html/test/test_hash_encoded.html
dom/workers/test/urlApi_worker.js
--- a/docshell/test/navigation/navigate.html
+++ b/docshell/test/navigation/navigate.html
@@ -1,18 +1,16 @@
 <html>
 <head>
     <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     <script src="NavigationUtils.js"></script>
     <script>
     function navigate() {
         var arguments = window.location.hash.substring(1).split(",");
         var target = arguments[0];
-        target = target.replace("%5B", "[");
-        target = target.replace("%5D", "]");
         var mechanism = arguments[1];
 
         switch(mechanism) {
         case "location":
           navigateByLocation(eval(target));
           break;
         case "open":
           navigateByOpen(target);
@@ -26,15 +24,13 @@
         }
     }
     </script>
 </head>
 <body onload="navigate();">
 <script>
 var arguments = window.location.hash.substring(1).split(",");
 var target = arguments[0];
-target = target.replace("%5B", "[");
-target = target.replace("%5D", "]");
 var mechanism = arguments[1];
 document.write("target=" + target + " mechanism=" + mechanism);
 </script>
 </body>
 </html>
--- a/dom/base/test/test_url.html
+++ b/dom/base/test/test_url.html
@@ -112,17 +112,17 @@
       port: '',
       pathname: '/',
       search: '?test',
       hash: ''
     },
     { url: 'http://example.com/carrot#question%3f',
       base: undefined,
       error: false,
-      hash: '#question%3f'
+      hash: '#question?'
     },
     { url: 'https://example.com:4443?',
       base: undefined,
       error: false,
       protocol: 'https:',
       port: '4443',
       pathname: '/',
       hash: '',
@@ -323,17 +323,16 @@
   <script>
     var blob = new Blob(['a']);
     var url = URL.createObjectURL(blob);
 
     var u = new URL(url);
     ok(u.origin, 'http://mochi.test:8888', "The URL generated from a blob URI has an origin");
   </script>
 
-
   <script>
     var blob = new Blob(['a']);
     var url = URL.createObjectURL(blob);
 
     var a = document.createElement('A');
     a.href = url;
     ok(a.origin, 'http://mochi.test:8888', "The 'a' element has the correct origin");
   </script>
--- a/dom/html/test/mochitest.ini
+++ b/dom/html/test/mochitest.ini
@@ -573,10 +573,9 @@ skip-if = toolkit == 'android'
 skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e10s # b2g(needs control of popup window size) b2g-debug(needs control of popup window size) b2g-desktop(needs control of popup window size)
 [test_non-ascii-cookie.html]
 skip-if = buildapp == 'b2g' || e10s
 [test_bug765780.html]
 [test_bug871161.html]
 skip-if = (buildapp == 'b2g' && toolkit != 'gonk') || e10s #Bug 931116, b2g desktop specific, initial triage
 support-files = file_bug871161-1.html file_bug871161-2.html
 [test_bug1013316.html]
-[test_hash_encoded.html]
 
deleted file mode 100644
--- a/dom/html/test/test_hash_encoded.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<title>Test link.hash attribute</title>
-<script src="/tests/SimpleTest/SimpleTest.js"></script>
-<link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-
-<a id="target1" href="http://www.example.com/#q=♥"></a>
-<a id="target2" href="http://www.example.com/#q=â¥"></a>
-<a id="target3" href="http://www.example.com/#/search/%23important"></a>
-
-<pre id="test">
-
-<script>
-  // Tests Link::GetHash
-
-  var target = document.getElementById("target1");
-  is(target.hash, '#q=%E2%99%A5', 'Unexpected hash');
-
-  target = document.getElementById("target2");
-  is(target.hash, '#q=%C3%A2%C2%A5', 'Unexpected hash');
-
-  target = document.getElementById("target3");
-  is(target.hash, '#/search/%23important', 'Unexpected hash');
-</script>
-
-<script>
-  // Tests URL::GetHash
-
-  var url = new URL("http://www.example.com/#q=♥")
-  is(url.hash, '#q=%E2%99%A5', 'Unexpected hash');
-
-  url = new URL("http://www.example.com/#q=â¥")
-  is(url.hash, '#q=%C3%A2%C2%A5', 'Unexpected hash');
-
-  url = new URL("http://www.example.com/#/search/%23important")
-  is(url.hash, '#/search/%23important', 'Unexpected hash');
-</script>
-
-<script>
-  // Tests nsLocation::GetHash
-
-  window.history.pushState(1, document.title, '#q=♥');
-  is(location.hash,'#q=%E2%99%A5', 'Unexpected hash');
-
-  window.history.pushState(1, document.title, '#q=â¥');
-  is(location.hash,'#q=%C3%A2%C2%A5', 'Unexpected hash');
-
-  window.history.pushState(1, document.title, '#/search/%23important');
-  is(location.hash,'#/search/%23important', 'Unexpected hash');
-</script>
-
-</pre>
-</body>
-</html>
--- a/dom/workers/test/urlApi_worker.js
+++ b/dom/workers/test/urlApi_worker.js
@@ -106,17 +106,17 @@ onmessage = function() {
       port: '',
       pathname: '/',
       search: '?test',
       hash: ''
     },
     { url: 'http://example.com/carrot#question%3f',
       base: undefined,
       error: false,
-      hash: '#question%3f'
+      hash: '#question?'
     },
     { url: 'https://example.com:4443?',
       base: undefined,
       error: false,
       protocol: 'https:',
       port: '4443',
       pathname: '/',
       hash: '',