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
70e5f3b2
Commit
70e5f3b2
authored
Oct 18, 2016
by
Arthur Edelstein
Committed by
Georg Koppen
Oct 20, 2016
Browse files
Bug 20394: Remove obsolete code
parent
2d88aa4d
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/chrome/content/contents.rdf
deleted
100644 → 0
View file @
2d88aa4d
<!-- Bug 1506 P0: This is old FF2 cruft. It does not need to exist. -->
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
<Seq about="urn:mozilla:package:root">
<li resource="urn:mozilla:package:torbutton"/>
</Seq>
<Description about="urn:mozilla:package:torbutton"
chrome:athor="Scott Squires"
chrome:displayName="Torbutton"
chrome:extension="true"
chrome:name="torbutton">
</Description>
<Seq about="urn:mozilla:overlays">
<!-- firefox 0.9 and 1.0 -->
<li resource="chrome://browser/content/browser.xul"/>
<li resource="chrome://browser/content/pref/pref-connection.xul"/>
<!-- thunderbird -->
<li resource="chrome://messenger/content/messenger.xul"/>
<li resource="chrome://messenger/content/messengercompose/messengercompose.xul"/>
<!-- torbutton -->
<li resource="chrome://torbutton/content/torbutton.xul"/>
</Seq>
<!-- firefox 0.9 and 1.0 -->
<Seq about="chrome://browser/content/browser.xul">
<li>chrome://torbutton/content/torbutton.xul</li>
</Seq>
<Seq about="chrome://browser/content/pref/pref-connection.xul">
<li>chrome://torbutton/content/pref-connection.xul</li>
</Seq>
<!-- thunderbird -->
<Seq about="chrome://messenger/content/messenger.xul">
<li>chrome://torbutton/content/torbutton_tb.xul</li>
</Seq>
<Seq about="chrome://messenger/content/messengercompose/messengercompose.xul">
<li>chrome://torbutton/content/torbutton_tb.xul</li>
</Seq>
<!-- torbutton -->
<Seq about="chrome://torbutton/content/torbutton.xul">
<li>chrome://torbutton/content/popup.xul</li>
</Seq>
</RDF>
src/chrome/content/torbutton.js
View file @
70e5f3b2
// Bug 1506 P
0
-P5: This is the main Torbutton overlay file. Much needs to be
// Bug 1506 P
1
-P5: This is the main Torbutton overlay file. Much needs to be
// preserved here, but in an ideal world, most of this code should perhaps be
// moved into an XPCOM service, and much can also be tossed. See also
// individual 1506 comments for details.
...
...
@@ -2110,25 +2110,6 @@ function torbutton_open_prefs_dialog() {
torbutton_log
(
2
,
'
opened preferences window
'
);
}
// Bug 1506 P0: Support code for checking Firefox versions. Not needed.
function
torbutton_gecko_compare
(
aVersion
)
{
var
ioService
=
Components
.
classes
[
"
@mozilla.org/network/io-service;1
"
]
.
getService
(
Components
.
interfaces
.
nsIIOService
);
var
httpProtocolHandler
=
ioService
.
getProtocolHandler
(
"
http
"
)
.
QueryInterface
(
Components
.
interfaces
.
nsIHttpProtocolHandler
);
var
versionComparator
=
null
;
if
(
"
nsIVersionComparator
"
in
Components
.
interfaces
)
{
versionComparator
=
Components
.
classes
[
"
@mozilla.org/xpcom/version-comparator;1
"
]
.
getService
(
Components
.
interfaces
.
nsIVersionComparator
);
}
else
{
versionComparator
=
Components
.
classes
[
"
@mozilla.org/updates/version-checker;1
"
]
.
getService
(
Components
.
interfaces
.
nsIVersionChecker
);
}
var
geckoVersion
=
httpProtocolHandler
.
misc
.
match
(
/rv:
([
0-9.
]
+
)
/
)[
1
];
return
versionComparator
.
compare
(
aVersion
,
geckoVersion
);
}
// -------------- HISTORY & COOKIES ---------------------
// Bug 1506 P4: Used by New Identity if cookie protections are
...
...
@@ -2321,7 +2302,7 @@ function torbutton_do_startup()
}
}
//
Bug 1506 P0:
Perform version check when a new tab is opened.
// Perform version check when a new tab is opened.
function
torbutton_new_tab
(
event
)
{
// listening for new tabs
...
...
src/chrome/content/torbutton_util.js
View file @
70e5f3b2
// Bug 1506 P
0
-P3: These utility functions might be useful, but
// Bug 1506 P
1
-P3: These utility functions might be useful, but
// you probably just want to rewrite them or use the underlying
// code directly. I don't see any of them as essential for 1506,
// really.
...
...
@@ -8,12 +8,6 @@ var m_tb_torlog = Components.classes["@torproject.org/torbutton-logger;1"]
var
m_tb_string_bundle
=
torbutton_get_stringbundle
();
// Bug 1506 P0: Use the log service directly
function
torbutton_eclog
(
nLevel
,
sMsg
)
{
m_tb_torlog
.
eclog
(
nLevel
,
sMsg
);
return
true
;
}
function
torbutton_safelog
(
nLevel
,
sMsg
,
scrub
)
{
m_tb_torlog
.
safe_log
(
nLevel
,
sMsg
,
scrub
);
return
true
;
...
...
src/chrome/skin/contents.rdf
deleted
100644 → 0
View file @
2d88aa4d
<!-- Bug 1506 P0: This is old FF2 cruft. It does not need to exist. -->
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
<Seq about="urn:mozilla:skin:root">
<li resource="urn:mozilla:skin:classic/1.0"/>
</Seq>
<Description about="urn:mozilla:skin:classic/1.0">
<chrome:packages>
<Seq about="urn:mozilla:skin:classic/1.0:packages">
<li resource="urn:mozilla:skin:classic/1.0:torbutton"/>
</Seq>
</chrome:packages>
</Description>
<Seq about="urn:mozilla:stylesheets">
<li resource="chrome://global/content/customizeToolbar.xul"/>
<!-- firefox -->
<li resource="chrome://browser/content/browser.xul"/>
<!-- thunderbird -->
<li resource="chrome://messenger/content/messenger.xul"/>
<li resource="chrome://messenger/content/messengercompose/messengercompose.xul"/>
</Seq>
<Seq about="chrome://global/content/customizeToolbar.xul">
<li>chrome://torbutton/skin/torbutton.css</li>
</Seq>
<!-- firefox -->
<Seq about="chrome://browser/content/browser.xul">
<li>chrome://torbutton/skin/torbutton.css</li>
</Seq>
<!-- thunderbird -->
<Seq about="chrome://messenger/content/messenger.xul">
<li>chrome://torbutton/skin/torbutton.css</li>
</Seq>
<Seq about="chrome://messenger/content/messengercompose/messengercompose.xul">
<li>chrome://torbutton/skin/torbutton.css</li>
</Seq>
</RDF>
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