Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
f87cd0af
Commit
f87cd0af
authored
Jan 14, 2020
by
Alex Catarineu
Committed by
Matthew Finkel
Feb 06, 2020
Browse files
Bug 31395: Remove inline script in aboutTor.xhtml
parent
9dbc7d20
Changes
4
Hide whitespace changes
Inline
Side-by-side
chrome.manifest
View file @
f87cd0af
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
...
...
chrome/content/aboutTor/aboutTor.xhtml
View file @
f87cd0af
...
...
@@ -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"
>
...
...
chrome/content/aboutTor/resources/aboutTor.js
0 → 100644
View file @
f87cd0af
/*************************************************************************
* 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
);
});
jar.mn
View file @
f87cd0af
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment