Commit f87cd0af authored by Alex Catarineu's avatar Alex Catarineu Committed by Matthew Finkel
Browse files

Bug 31395: Remove inline script in aboutTor.xhtml

parent 9dbc7d20
content torbutton chrome/content/
resource torbutton ./
resource torbutton-abouttor resource://torbutton/content/aboutTor/resources/ contentaccessible=yes
resource torbutton-assets resource://torbutton/chrome/skin/ contentaccessible=yes
# browser branding
......
......@@ -20,19 +20,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Security-Policy" content="default-src chrome: resource:; script-src chrome: resource: 'unsafe-inline';" />
<meta http-equiv="Content-Security-Policy" content="default-src resource:;" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>&aboutTor.title;</title>
<link rel="stylesheet" type="text/css" media="all"
href="resource://torbutton-assets/aboutTor.css"/>
<script type="text/javascript">
<![CDATA[
window.addEventListener("pageshow", function() {
let evt = new CustomEvent("AboutTorLoad", { bubbles: true });
document.dispatchEvent(evt);
});
]]>
</script>
<script type="text/javascript" src="resource://torbutton-abouttor/aboutTor.js"></script>
</head>
<body dir="&locale.dir;">
<div class="torcontent-container">
......
/*************************************************************************
* Copyright (c) 2020, The Tor Project, Inc.
* See LICENSE for licensing information.
*
* vim: set sw=2 sts=2 ts=8 et syntax=javascript:
*************************************************************************/
window.addEventListener("pageshow", function() {
let evt = new CustomEvent("AboutTorLoad", { bubbles: true });
document.dispatchEvent(evt);
});
......@@ -10,6 +10,7 @@ torbutton.jar:
skin/ (chrome/skin/*)
% resource torbutton %
% resource torbutton-abouttor resource://torbutton/content/aboutTor/resources/ contentaccessible=yes
% resource torbutton-assets resource://torbutton/skin/ contentaccessible=yes
# browser branding
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment