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
7bdf1f4f
Verified
Commit
7bdf1f4f
authored
Mar 26, 2024
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
Bug 42472: Spoof timezone in XSLT.
parent
ee2f0e77
No related branches found
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 @
7bdf1f4f
...
...
@@ -590,7 +590,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
(),
nsContentUtils
::
ShouldResistFingerprinting
(
"We are not allowed to access the document at this "
"stage (we are given a txEarlyEvalContext context)."
,
RFPTarget
::
JSDateTimeUTC
)
?
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 commit
1bffea64
·
Sep 2, 2024
mentioned in commit
1bffea64
mentioned in commit 1bffea64f992fc0cdaaea1f429bf0263473796c6
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