Skip to content
Snippets Groups Projects
Verified Commit 7bdf1f4f authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

Bug 42472: Spoof timezone in XSLT.

parent ee2f0e77
Branches
No related tags found
2 merge requests!1202Bug_43099: 2024 YEC Strings,!1136Bug 43085: Rebased alpha onto 128.2.0esr
......@@ -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) /
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment