Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
81c5119b
Verified
Commit
81c5119b
authored
Dec 13, 2022
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 16940: After update, load local change notes.
Bug 41524: Read changelogs as UTF-8
parent
96d9ec71
Loading
Loading
1 merge request
!484
Bug 41524: Read changelogs as UTF-8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
browser/actors/AboutTBUpdateParent.jsm
+4
-9
4 additions, 9 deletions
browser/actors/AboutTBUpdateParent.jsm
with
4 additions
and
9 deletions
browser/actors/AboutTBUpdateParent.jsm
+
4
−
9
View file @
81c5119b
...
...
@@ -22,9 +22,9 @@ const kRequestUpdateMessageName = "FetchUpdateData";
* implementation.
*/
class
AboutTBUpdateParent
extends
JSWindowActorParent
{
receiveMessage
(
aMessage
)
{
async
receiveMessage
(
aMessage
)
{
if
(
aMessage
.
name
==
kRequestUpdateMessageName
)
{
return
this
.
r
eleaseNoteInfo
;
return
this
.
getR
eleaseNoteInfo
()
;
}
return
undefined
;
}
...
...
@@ -51,7 +51,7 @@ class AboutTBUpdateParent extends JSWindowActorParent {
// On Mac OS, when building with --enable-tor-browser-data-outside-app-dir
// to support Gatekeeper signing, the ChangeLog.txt file is located in
// TorBrowser.app/Contents/Resources/TorBrowser/Docs/.
get
r
eleaseNoteInfo
()
{
async
get
R
eleaseNoteInfo
()
{
let
info
=
{
moreInfoURL
:
this
.
moreInfoURL
};
try
{
...
...
@@ -74,12 +74,7 @@ class AboutTBUpdateParent extends JSWindowActorParent {
f
.
append
(
"
Docs
"
);
f
.
append
(
"
ChangeLog.txt
"
);
let
fs
=
Cc
[
"
@mozilla.org/network/file-input-stream;1
"
].
createInstance
(
Ci
.
nsIFileInputStream
);
fs
.
init
(
f
,
-
1
,
0
,
0
);
let
s
=
NetUtil
.
readInputStreamToString
(
fs
,
fs
.
available
());
fs
.
close
();
let
s
=
await
IOUtils
.
readUTF8
(
f
.
path
);
// Truncate at the first empty line.
s
=
s
.
replace
(
/
[\r\n][\r\n][\s\S]
*$/m
,
""
);
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment