forked from privly/privly-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiframe_level_1.html
114 lines (105 loc) · 6.04 KB
/
iframe_level_1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Privly Test Frame</title>
<script src="jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEventListener("load", function (e){
var content = ['<p>Localhost link <br/><a href="http://localhost:3000/posts/2">http://localhost:3000/posts/2</a></p>',
'<p>Privly link <a href="https://priv.ly/posts/2">https://priv.ly/posts/2</a></p>',
'<p>Privly link without SSL <a href="http://priv.ly/posts/2">http://priv.ly/posts/2</a></p>',
'<p>Localhost link <br/>http://localhost:3000/posts/2</p>',
'<p>Privly link https://priv.ly/posts/2</p>',
'<p>Privly link without SSL http://priv.ly/posts/2</p>',
'<p>Localhost link <br/><a href="http://trackingserver.com">http://localhost:3000/posts/2</a></p>',
'<p>Privly link <a href="http://trackingserver.com">https://priv.ly/posts/2</a></p>',
'<p>Privly link without SSL <a href="http://trackingserver.com">http://priv.ly/posts/2</a></p>',
'<p>Localhost link <br/><a href="http://trackingserver.com">Our link is surrounded by other text http://localhost:3000/posts/2 yes it is.</a></p>',
'<p>Privly link <a href="http://trackingserver.com">Our link is surrounded by other text https://priv.ly/posts/2 yes it is.</a></p>',
'<p>Privly link without SSL <a href="http://trackingserver.com">Our link is surrounded by other text http://priv.ly/posts/2 yes it is.</a></p>',
'<p>Localhost link <br/><a href="http://trackingserver.com" submitted_href="http://localhost:3000/posts/2">Link body does not contain Privly href</a></p>',
'<p>Privly link <a href="http://trackingserver.com" submitted_href="https://priv.ly/posts/2">Link body does not contain Privly href</a></p>',
'<p>Privly link without SSL <a href="http://trackingserver.com" submitted_href="http://priv.ly/posts/2">Link body does not contain Privly href</a></p>']
jQuery.each( content, function( index, val ) {
setTimeout(
function(){
jQuery("#"+index).html(content[index]);
},
800);
});
}, false);
</script>
<link href="styles.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Privly Test File</h1>
<p>This file contains a sample of ways Privly links may be displayed on host pages. Privly extensions must pass all these test cases before deployment.</p>
<div id="messages">No Messages</div>
<h2>Static Content</h2>
<h3>Anchor Elements<h3>
<ul>
<li><p>Localhost link <br/><a href="http://localhost:3000/posts/2">http://localhost:3000/posts/2</a></p></li>
<li><p>Privly link <a href="https://priv.ly/posts/2">https://priv.ly/posts/2</a></p></li>
<li><p>Privly link without SSL <a href="http://priv.ly/posts/2">http://priv.ly/posts/2</a></p></li>
</ul>
<h3>Plain Text Elements<h3>
<ul>
<li><p>Localhost link <br/>http://localhost:3000/posts/2</p></li>
<li><p>Privly link https://priv.ly/posts/2</p></li>
<li><p>Privly link without SSL http://priv.ly/posts/2</p></li>
</ul>
<h3>Anchor Elements + Indirection<h3>
<p>Privly link forms all the body contents of the anchor, but the href points to a tracking server</p>
<ul>
<li><p>Localhost link <br/><a href="http://trackingserver.com">http://localhost:3000/posts/2</a></p></li>
<li><p>Privly link <a href="http://trackingserver.com">https://priv.ly/posts/2</a></p></li>
<li><p>Privly link without SSL <a href="http://trackingserver.com">http://priv.ly/posts/2</a></p></li>
</ul>
<p>Privly link is in the body of the anchor with other text, but the href points to a tracking server</p>
<ul>
<li><p>Localhost link <br/><a href="http://trackingserver.com">Our link is surrounded by other text http://localhost:3000/posts/2 yes it is.</a></p></li>
<li><p>Privly link <a href="http://trackingserver.com">Our link is surrounded by other text https://priv.ly/posts/2 yes it is.</a></p></li>
<li><p>Privly link without SSL <a href="http://trackingserver.com">Our link is surrounded by other text http://priv.ly/posts/2 yes it is.</a></p></li>
</ul>
<p>Privly link is on an attribute other than the href (unsolved)</p>
<ul>
<li><p>Localhost link <br/><a href="http://trackingserver.com" submitted_href="http://localhost:3000/posts/2">Link body does not contain Privly href</a></p></li>
<li><p>Privly link <a href="http://trackingserver.com" submitted_href="https://priv.ly/posts/2">Link body does not contain Privly href</a></p></li>
<li><p>Privly link without SSL <a href="http://trackingserver.com" submitted_href="http://priv.ly/posts/2">Link body does not contain Privly href</a></p></li>
</ul>
<h2>Dynamic Content</h2>
<h3>Anchor Elements<h3>
<ul>
<li id="0"></li>
<li id="1"></li>
<li id="2"></li>
</ul>
<h3>Plain Text Elements<h3>
<ul>
<li id="3"></li>
<li id="4"></li>
<li id="5"></li>
</ul>
<h3>Anchor Elements + Indirection<h3>
<p>Privly link forms all the body contents of the anchor, but the href points to a tracking server</p>
<ul>
<li id="6"></li>
<li id="7"></li>
<li id="8"></li>
</ul>
<p>Privly link is in the body of the anchor with other text, but the href points to a tracking server</p>
<ul>
<li id="9"></li>
<li id="10"></li>
<li id="11"></li>
</ul>
<p>Privly link is on an attribute other than the href (unsolved)</p>
<ul>
<li id="12"></li>
<li id="13"></li>
<li id="14"></li>
</ul>
</div>
</body>
</html>