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
303a1239
Commit
303a1239
authored
Apr 22, 2024
by
henry
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Lox integration
Bug 42476: Drop unnecessary #window property.
parent
07ec5817
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1003
Disable the Lox module for the release channel
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/components/lox/Lox.sys.mjs
+3
-7
3 additions, 7 deletions
toolkit/components/lox/Lox.sys.mjs
with
3 additions
and
7 deletions
toolkit/components/lox/Lox.sys.mjs
+
3
−
7
View file @
303a1239
...
...
@@ -104,7 +104,6 @@ export class LoxError extends Error {
class
LoxImpl
{
#initialized
=
false
;
#window
=
null
;
#pubKeyPromise
=
null
;
#encTablePromise
=
null
;
#constantsPromise
=
null
;
...
...
@@ -537,11 +536,9 @@ class LoxImpl {
Services
.
obs
.
addObserver
(
this
,
lazy
.
TorSettingsTopics
.
Ready
);
// Hack to make the generated wasm happy
this
.
#window
=
{
crypto
,
};
this
.
#window
.
window
=
this
.
#window
;
await
lazy
.
init
(
this
.
#window
);
const
win
=
{
crypto
};
win
.
window
=
win
;
await
lazy
.
init
(
win
);
lazy
.
set_panic_hook
();
if
(
typeof
lazy
.
open_invite
!==
"
function
"
)
{
throw
new
LoxError
(
"
Initialization failed
"
);
...
...
@@ -561,7 +558,6 @@ class LoxImpl {
this
.
#domainFrontedRequests
=
null
;
}
this
.
#initialized
=
false
;
this
.
#window
=
null
;
this
.
#invites
=
[];
this
.
#pubKeys
=
null
;
this
.
#encTable
=
null
;
...
...
...
...
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