mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 3a3c05f46c5e (bug 1093611)
This commit is contained in:
parent
840f83a812
commit
e152dca739
@ -6,8 +6,6 @@
|
|||||||
function navigate() {
|
function navigate() {
|
||||||
var arguments = window.location.hash.substring(1).split(",");
|
var arguments = window.location.hash.substring(1).split(",");
|
||||||
var target = arguments[0];
|
var target = arguments[0];
|
||||||
target = target.replace("%5B", "[");
|
|
||||||
target = target.replace("%5D", "]");
|
|
||||||
var mechanism = arguments[1];
|
var mechanism = arguments[1];
|
||||||
|
|
||||||
switch(mechanism) {
|
switch(mechanism) {
|
||||||
@ -31,8 +29,6 @@
|
|||||||
<script>
|
<script>
|
||||||
var arguments = window.location.hash.substring(1).split(",");
|
var arguments = window.location.hash.substring(1).split(",");
|
||||||
var target = arguments[0];
|
var target = arguments[0];
|
||||||
target = target.replace("%5B", "[");
|
|
||||||
target = target.replace("%5D", "]");
|
|
||||||
var mechanism = arguments[1];
|
var mechanism = arguments[1];
|
||||||
document.write("target=" + target + " mechanism=" + mechanism);
|
document.write("target=" + target + " mechanism=" + mechanism);
|
||||||
</script>
|
</script>
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
{ url: 'http://example.com/carrot#question%3f',
|
{ url: 'http://example.com/carrot#question%3f',
|
||||||
base: undefined,
|
base: undefined,
|
||||||
error: false,
|
error: false,
|
||||||
hash: '#question%3f'
|
hash: '#question?'
|
||||||
},
|
},
|
||||||
{ url: 'https://example.com:4443?',
|
{ url: 'https://example.com:4443?',
|
||||||
base: undefined,
|
base: undefined,
|
||||||
@ -328,7 +328,6 @@
|
|||||||
ok(u.origin, 'http://mochi.test:8888', "The URL generated from a blob URI has an origin");
|
ok(u.origin, 'http://mochi.test:8888', "The URL generated from a blob URI has an origin");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var blob = new Blob(['a']);
|
var blob = new Blob(['a']);
|
||||||
var url = URL.createObjectURL(blob);
|
var url = URL.createObjectURL(blob);
|
||||||
|
@ -578,5 +578,4 @@ skip-if = buildapp == 'b2g' || e10s
|
|||||||
skip-if = (buildapp == 'b2g' && toolkit != 'gonk') || e10s #Bug 931116, b2g desktop specific, initial triage
|
skip-if = (buildapp == 'b2g' && toolkit != 'gonk') || e10s #Bug 931116, b2g desktop specific, initial triage
|
||||||
support-files = file_bug871161-1.html file_bug871161-2.html
|
support-files = file_bug871161-1.html file_bug871161-2.html
|
||||||
[test_bug1013316.html]
|
[test_bug1013316.html]
|
||||||
[test_hash_encoded.html]
|
|
||||||
|
|
||||||
|
@ -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>
|
|
@ -111,7 +111,7 @@ onmessage = function() {
|
|||||||
{ url: 'http://example.com/carrot#question%3f',
|
{ url: 'http://example.com/carrot#question%3f',
|
||||||
base: undefined,
|
base: undefined,
|
||||||
error: false,
|
error: false,
|
||||||
hash: '#question%3f'
|
hash: '#question?'
|
||||||
},
|
},
|
||||||
{ url: 'https://example.com:4443?',
|
{ url: 'https://example.com:4443?',
|
||||||
base: undefined,
|
base: undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user