Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Mullvad Browser
Commits
1b1e94cd
Verified
Commit
1b1e94cd
authored
Mar 26, 2024
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
Bug 42472: Spoof timezone in XSLT.
parent
81838b89
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dom/xslt/xslt/txEXSLTFunctions.cpp
+8
-1
8 additions, 1 deletion
dom/xslt/xslt/txEXSLTFunctions.cpp
with
8 additions
and
1 deletion
dom/xslt/xslt/txEXSLTFunctions.cpp
+
8
−
1
View file @
1b1e94cd
...
...
@@ -591,7 +591,14 @@ nsresult txEXSLTFunctionCall::evaluate(txIEvalContext* aContext,
// http://exslt.org/date/functions/date-time/
PRExplodedTime
prtime
;
PR_ExplodeTime
(
PR_Now
(),
PR_LocalTimeParameters
,
&
prtime
);
PR_ExplodeTime
(
PR_Now
(),
// We are not allowed to access the Document when evaluating this, so
// fall back to the general function.
nsContentUtils
::
ShouldResistFingerprinting
(
RFPTarget
::
Unknown
)
?
PR_GMTParameters
:
PR_LocalTimeParameters
,
&
prtime
);
int32_t
offset
=
(
prtime
.
tm_params
.
tp_gmt_offset
+
prtime
.
tm_params
.
tp_dst_offset
)
/
...
...
...
...
This diff is collapsed.
Click to expand it.
Pier Angelo Vendrame
@pierov
mentioned in issue
tor-browser#42472 (closed)
·
Apr 8, 2024
mentioned in issue
tor-browser#42472 (closed)
mentioned in issue tor-browser#42472
Toggle commit list
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