Add assets for flashblock testing pages

This commit is contained in:
Kirk Steuber 2017-01-26 15:54:15 -08:00
Родитель 44c6c30f72
Коммит ddc03c9f28
12 изменённых файлов: 285 добавлений и 1 удалений

Просмотреть файл

@ -2,7 +2,8 @@
#unwanted,
#its-a-tracker,
#its-a-trap,
#its-an-attack {
#its-an-attack,
#flashblock {
background: #fff;
}
@ -20,6 +21,7 @@
#its-a-tracker #main-feature h2 { font-size: 520%; }
#its-a-trap #main-feature h2 { font-size: 520%; }
#its-an-attack #main-feature h2 { font-size: 420%; }
#flashblock #main-feature h2 { font-size: 320%; }
#wrapper {
background: url(/img/background.jpg) no-repeat scroll top center;
@ -32,6 +34,34 @@
display: inline;
}
#flashblock #tests th,
#flashblock #tests td {
border-spacing: 1px;
text-align: center;
}
#flashblock #tests td:not(:first-child) {
border: 1px solid black;
}
#flashblock #tests td:not(:first-child),
#flashblock #tests td iframe,
#flashblock #tests td object,
#flashblock #tests td img,
#flashblock-frame,
#flashblock-frame object,
#flashblock-frame iframe {
width: 140px;
height: 100px;
}
#flashblock-frame,
#flashblock-frame iframe {
border: none;
background: none;
min-width: 0px;
}
#download {
float: left;
display: inline;

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE HTML>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<title>Flash Block Frame</title>
<link href="/css/min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/its-a-trap.css" media="screen" />
</head>
<body id="flashblock-frame">
<object data="/swf/click-to-activate.swf">
</body>
</html>

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE HTML>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<title>Flash Block Frame</title>
<link href="/css/min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/its-a-trap.css" media="screen" />
</head>
<body id="flashblock-frame">
<object data="/swf/failure.swf">
</body>
</html>

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE HTML>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<title>Flash Block Parent Frame</title>
<link href="/css/min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/its-a-trap.css" media="screen" />
</head>
<body id="flashblock-frame">
<iframe src="http://flashallow.itisatrap.org/firefox/flashblock-failure-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe>
</body>
</html>

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE HTML>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<title>Flash Block Frame</title>
<link href="/css/min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/its-a-trap.css" media="screen" />
</head>
<body id="flashblock-frame">
<object data="/swf/success.swf">
</body>
</html>

Просмотреть файл

@ -0,0 +1,91 @@
<!DOCTYPE HTML>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<title>It's Third-party Flash</title>
<link href="/css/min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/its-a-trap.css" media="screen" />
</head>
<body id="flashblock" class="portal-page locale-en-US portal-page">
<div id="wrapper">
<div id="doc">
<div id="nav-access">
<a href="#nav-main">skip to Navigation</a>
<a href="#switch">switch language</a>
</div>
<!-- start #header -->
<div id="header">
<div>
<h1><a href="http://www.mozilla.org/firefox/" title="Back to home page">Mozilla Firefox</a></h1>
<a href="http://www.mozilla.org/" class="mozilla">visit <span>mozilla</span></a>
</div>
</div>
<!-- end #header -->
<div id="main-feature">
<h2>Blocked Flash Content!</h2>
<p>I'm a Web page with Flash that is not trusted in a third-party context!</p>
</div>
<div id="main-content">
<p>OK, not really, but Firefox can be configured to block content in a third-party context.</p>
<table id="tests">
<tr>
<th>Test</th>
<th>Expected</th>
<th>Actual</th>
</tr>
<tr>
<td>Top-Level</td>
<td><img src="/img/flash-cta.png"></td>
<td><object data="/swf/click-to-activate.swf"></object></td>
</tr>
<tr>
<td>Third-party Blocked</td>
<td><!-- Display nothing here. Blocked plugins are not displayed --></td>
<td><iframe src="http://flashthirdparty.itisatrap.org/firefox/flashblock-failure-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe></td>
</tr>
<tr>
<td>Third-party Block Exception</td>
<td><img src="/img/flash-cta.png"></td>
<td><iframe src="http://except.flashthirdparty.itisatrap.org/firefox/flashblock-cta-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe></td>
</tr>
</table>
<div id="download">
<ul class="home-download">
<li>
<a class="download-link download-firefox" href="http://www.mozilla.org/firefox/"><span class="download-content">
<span class="download-title">Firefox</span>
Free Download
</span></a>
</li>
</ul>
</div>
</div> <!-- end #main-content -->
</div><!-- end #doc -->
</div><!-- end #wrapper -->
<!-- start #footer -->
<div id="footer">
<div id="footer-contents">
<div id="copyright">
<p id="footer-links"><a href="http://www.mozilla.org/privacy-policy.html">Privacy Policy</a> &nbsp;|&nbsp;
<a href="http://www.mozilla.org/about/legal.html">Legal Notices</a> &nbsp;|&nbsp;
<a href="http://www.mozilla.org/legal/fraud-report/index.html">Report Trademark Abuse</a></p>
<p>Except where otherwise <a href="http://www.mozilla.org/about/legal/">noted</a>, content on this site is licensed under the <br /><a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution Share-Alike License v3.0</a> or any later version.</p>
</div>
</div>
</div>
<!-- end #footer -->
</body>
</html>

107
firefox/flashblock.html Normal file
Просмотреть файл

@ -0,0 +1,107 @@
<!DOCTYPE HTML>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<title>It's blocked Flash</title>
<link href="/css/min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/its-a-trap.css" media="screen" />
</head>
<body id="flashblock" class="portal-page locale-en-US portal-page">
<div id="wrapper">
<div id="doc">
<div id="nav-access">
<a href="#nav-main">skip to Navigation</a>
<a href="#switch">switch language</a>
</div>
<!-- start #header -->
<div id="header">
<div>
<h1><a href="http://www.mozilla.org/firefox/" title="Back to home page">Mozilla Firefox</a></h1>
<a href="http://www.mozilla.org/" class="mozilla">visit <span>mozilla</span></a>
</div>
</div>
<!-- end #header -->
<div id="main-feature">
<h2>Blocked Flash Content!</h2>
<p>I'm a Web page that hosts malicious Flash Content!</p>
</div>
<div id="main-content">
<p>OK, not really, but Firefox can be configured to block certain domains from displaying Flash content.</p>
<p>In addition to these tests, there are tests of third-party Flash blocking <a href="flashblock-third-party.html" target="_blank">here</a></p>
<table id="tests">
<tr>
<th>Test</th>
<th>Expected</th>
<th>Actual</th>
</tr>
<tr>
<td>Top-Level</td>
<td><img src="/img/flash-cta.png"></td>
<td><object data="/swf/click-to-activate.swf"></object></td>
</tr>
<tr>
<td>Blocked</td>
<td><!-- Display nothing here. Blocked plugins are not displayed --></td>
<td><iframe src="http://flashblock.itisatrap.org/firefox/flashblock-failure-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe></td>
</tr>
<tr>
<td>Block Exception</td>
<td><img src="/img/flash-cta.png"></td>
<td><iframe src="http://except.flashblock.itisatrap.org/firefox/flashblock-cta-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe></td>
</tr>
<tr>
<td>Allowed</td>
<td><img src="/img/flash-success.png"></td>
<td><iframe src="http://flashallow.itisatrap.org/firefox/flashblock-success-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe></td>
</tr>
<tr>
<td>Allow Exception</td>
<td><img src="/img/flash-cta.png"></td>
<td><iframe src="http://except.flashallow.itisatrap.org/firefox/flashblock-cta-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe></td>
</tr>
<tr>
<td>Allowed site within Blocked site</td>
<td><!-- Display nothing here. Blocked plugins are not displayed --></td>
<td><iframe src="http://flashblock.itisatrap.org/firefox/flashblock-parent-of-whitelisted-frame.html" scrolling="no" frameBorder="0" seamless='seamless'></iframe></td>
</tr>
</table>
<div id="download">
<ul class="home-download">
<li>
<a class="download-link download-firefox" href="http://www.mozilla.org/firefox/"><span class="download-content">
<span class="download-title">Firefox</span>
Free Download
</span></a>
</li>
</ul>
</div>
</div> <!-- end #main-content -->
</div><!-- end #doc -->
</div><!-- end #wrapper -->
<!-- start #footer -->
<div id="footer">
<div id="footer-contents">
<div id="copyright">
<p id="footer-links"><a href="http://www.mozilla.org/privacy-policy.html">Privacy Policy</a> &nbsp;|&nbsp;
<a href="http://www.mozilla.org/about/legal.html">Legal Notices</a> &nbsp;|&nbsp;
<a href="http://www.mozilla.org/legal/fraud-report/index.html">Report Trademark Abuse</a></p>
<p>Except where otherwise <a href="http://www.mozilla.org/about/legal/">noted</a>, content on this site is licensed under the <br /><a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution Share-Alike License v3.0</a> or any later version.</p>
</div>
</div>
</div>
<!-- end #footer -->
</body>
</html>

Двоичные данные
img/flash-cta.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 2.2 KiB

Двоичные данные
img/flash-success.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.4 KiB

Двоичные данные
swf/click-to-activate.swf Normal file

Двоичный файл не отображается.

Двоичные данные
swf/failure.swf Normal file

Двоичный файл не отображается.

Двоичные данные
swf/success.swf Normal file

Двоичный файл не отображается.