Backed out changeset 3a3c05f46c5e (bug 1093611)

This commit is contained in:
Carsten "Tomcat" Book 2014-11-25 11:01:23 +01:00
parent 840f83a812
commit e152dca739
5 changed files with 2 additions and 65 deletions

View File

@ -6,8 +6,6 @@
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) {
@ -31,8 +29,6 @@
<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>

View File

@ -117,7 +117,7 @@
{ url: 'http://example.com/carrot#question%3f',
base: undefined,
error: false,
hash: '#question%3f'
hash: '#question?'
},
{ url: 'https://example.com:4443?',
base: undefined,
@ -328,7 +328,6 @@
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);

View File

@ -578,5 +578,4 @@ skip-if = buildapp == 'b2g' || e10s
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]

View File

@ -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>

View File

@ -111,7 +111,7 @@ onmessage = function() {
{ url: 'http://example.com/carrot#question%3f',
base: undefined,
error: false,
hash: '#question%3f'
hash: '#question?'
},
{ url: 'https://example.com:4443?',
base: undefined,